Tensor constructor

Tensor({
  1. Tensor_DataType dtype = Tensor_DataType.$default,
  2. List<int> shape = const [],
  3. List<bool> boolVal = const [],
  4. List<String> stringVal = const [],
  5. List<Uint8List> bytesVal = const [],
  6. List<double> floatVal = const [],
  7. List<double> doubleVal = const [],
  8. List<int> intVal = const [],
  9. List<int> int64Val = const [],
  10. List<int> uintVal = const [],
  11. List<BigInt> uint64Val = const [],
  12. List<Tensor> listVal = const [],
  13. Map<String, Tensor> structVal = const {},
  14. 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);