load static method
Implementation
static void load(String name, Pointer<Float> data, List<int> shape) {
Pointer<Utf8> nName = name.toNativeUtf8();
Pointer<Int32> nShape = calloc<Int32>(shape.length);
Int32List view = nShape.asTypedList(shape.length);
for (int i = 0; i < shape.length; i = i + 1) {
view[i] = shape[i];
}
_load(handle, nName, data, shape.length, nShape);
calloc.free(nName);
calloc.free(nShape);
}