TensorBuilder<T> class Null safety





data List<T>
elements List<T>
Elements of the tensor.
hashCode int
The hash code for this object. [...]
read-only, inherited
length int
Length of the tensor.
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tensorShape TensorShape
Shape of the tensor.
read / write


abs() → void
Calculates absolute value for each element. [...]
add(Tensor<T> right) → void
Calculates sum of two tensors. [...]
build({bool recycle = false}) Tensor<T>
Builds tensor and resets elements to empty list. [...]
ceil() → void
Calculates ceil for each element. [...]
clamp(T lowerLimit, T upperLimit) → void
Clamps elements of this tensor. [...]
cos() → void
Calculates cos for each element. [...]
div(Tensor<T> right, {bool noNan = false, bool swapArguments = false}) → void
Calculates fraction of two tensors. [...]
divScalar(num value, {bool noNan = false, bool swapArguments = false}) → void
Divides elements. [...]
exp() → void
Calculates exponent for each element. [...]
fill(T value) → void
Fills each element with the argument. [...]
floor() → void
Calculates floor for each element. [...]
getXY(int x, int y) → T
Gets element value.
log() → void
Calculates logarithm for each element. [...]
max(Tensor<T> right) → void
Calculates element-wise maximum of the two tensors. [...]
min(Tensor<T> right) → void
Calculates element-wise minimum of the two tensors. [...]
mul(Tensor<T> right) → void
Multiplies elements. [...]
mulScalar(num value) → void
Multiplies elements by a scalar.
neg() → void
Negates elements. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
pow(Tensor<T> right, {bool swapArguments = false}) → void
Calculates pow(a,b) for each element. [...]
round() → void
Rounds elements.
setTensor(Tensor<T> tensor) → void
Initializes shape and element values with the tensor.
setXY(int x, int y, T value) → void
Sets element value.
sin() → void
Calculates sin for each element. [...]
sq() → void
Calculates a*a for each element. [...]
sqrt() → void
Calculates sqrt for each element. [...]
sub(Tensor<T> right) → void
Subtracts elements of the arguments. [...]
tan() → void
Calculates tan for each element. [...]
toBuilder({bool copy = true}) TensorBuilder<T>
Constructs a new TensorBuilder that has this tensor. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]