FloatTensorBuilder class Null safety

Inheritance
Implementers

Constructors

FloatTensorBuilder()

Properties

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

Methods

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

Operators

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