Tensor constructor
Tensor({
- Tensor_DataType dtype = Tensor_DataType.$default,
- List<
int> shape = const [], - List<
bool> boolVal = const [], - List<
String> stringVal = const [], - List<
Uint8List> bytesVal = const [], - List<
double> floatVal = const [], - List<
double> doubleVal = const [], - List<
int> intVal = const [], - List<
int> int64Val = const [], - List<
int> uintVal = const [], - List<
BigInt> uint64Val = const [], - List<
Tensor> listVal = const [], - Map<
String, Tensor> structVal = const {}, - Uint8List? tensorVal,
Implementation
Tensor({
this.dtype = Tensor_DataType.$default,
this.shape = const [],
this.boolVal = const [],
this.stringVal = const [],
this.bytesVal = const [],
this.floatVal = const [],
this.doubleVal = const [],
this.intVal = const [],
this.int64Val = const [],
this.uintVal = const [],
this.uint64Val = const [],
this.listVal = const [],
this.structVal = const {},
Uint8List? tensorVal,
}) : tensorVal = tensorVal ?? Uint8List(0),
super(fullyQualifiedName);