TensorBuilder<T> class abstract

Implementers

Constructors

TensorBuilder()

Properties

data List<T>
no setter
elements List<T>
Elements of the tensor.
no setter
hashCode int
The hash code for this object.
no setterinherited
length int
Length of the tensor.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tensorShape TensorShape
Shape of the tensor.
getter/setter pair

Methods

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 nonexistent method or property is accessed.
inherited
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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited