value property

T get value

Converts data via shape and returns the value as T.

Implementation

T get value {
  if (data.isEmpty) {
    throw Exception("VRAM data not synced to CPU. Call toCpu() first.");
  }
  return _unflatten(data);
}