retrieve static method

void retrieve(
  1. String name,
  2. Pointer<Float> destination
)

Transfers a tensors data from device(GPU) to host. Requires the tensors name and transfer destination.

Implementation

static void retrieve(String name, Pointer<Float> destination) {
  using((Arena arena) {
    Pointer<Utf8> nName = name.toNativeUtf8(allocator: arena);
    _retrieve(handle, nName, destination);
  });
}