Float32TensorBuilder class

Inheritance

Constructors

Float32TensorBuilder()

Properties

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

Methods

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

Operators

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