Tensor class abstract
- Implementers
Constructors
- Tensor({required Int64List shape, MemoryFormat memoryFormat = MemoryFormat.contiguous})
Properties
- dataAsFloat32List → Float32List
-
no setter
- dataAsFloat64List → Float64List
-
no setter
- dataAsInt32List → Int32List
-
no setter
- dataAsInt64List → Int64List
-
no setter
- dataAsInt8List → Int8List
-
no setter
- dataAsUin8List → Uint8List
-
no setter
- dtype → DType
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- memoryFormat → MemoryFormat
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → Int64List
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromBlobFloat32(
Float32List data, Int64List shape, {MemoryFormat memoryFormat = MemoryFormat.contiguous}) → Tensor -
fromBlobFloat64(
Float64List data, Int64List shape, {MemoryFormat memoryFormat = MemoryFormat.contiguous}) → Tensor -
fromBlobInt32(
Int32List data, Int64List shape, {MemoryFormat memoryFormat = MemoryFormat.contiguous}) → Tensor -
fromBlobInt64(
Int64List data, Int64List shape, {MemoryFormat memoryFormat = MemoryFormat.contiguous}) → Tensor -
fromBlobInt8(
Int8List data, Int64List shape, {MemoryFormat memoryFormat = MemoryFormat.contiguous}) → Tensor -
fromBlobUint8(
Uint8List data, Int64List shape, {MemoryFormat memoryFormat = MemoryFormat.contiguous}) → Tensor -
fromMap(
dynamic map) → Tensor