retrieve static method
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);
});
}