Float32Tensor class abstract

Implemented types
Implementers

Constructors

Float32Tensor()

Properties

elements List<double>
Returns elements as a list.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isScalar bool
Tells whether the tensor is a scalar.
no setterinherited
isZero bool
Tells whether all elements are zero.
no setteroverride
length int
Returns number of elements in the tensor.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tensorShape TensorShape
Returns shape of the tensor.
no setterinherited

Methods

clamp(double lowerLimit, double upperLimit) Tensor<double>
Calculates square of each element.
inherited
getFlat(int index) double
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scale(num s) Tensor
Multiplies every element by scalar s.
inherited
scaleInverse(num s) Tensor
Divides every element is divided by scalar s. This may be numerically more accurate than multiplying by 1/s.
inherited
sq() Tensor<double>
Calculates square of each element.
inherited
sqrt() Tensor<double>
Calculates square root of each element.
inherited
toBuilder({bool copy = true}) Float32TensorBuilder
Constructs a TensorBuilder that has this tensor.
override
toScalar() double
Returns a scalar when the tensor has only a single element;
inherited
toString() String
A string representation of this object.
inherited

Operators

operator *(Tensor<double> right) Tensor<double>
Calculates element-wise product.
inherited
operator +(Tensor<double> right) Tensor<double>
Calculates element-wise sum.
inherited
operator -(Tensor<double> right) Tensor<double>
Calculates element-wise difference.
inherited
operator /(Tensor<double> right) Tensor<double>
Calculates element-wise fraction.
inherited
operator ==(Object other) bool
The equality operator.
inherited
operator unary-() Tensor<double>
Calculates scale(-1.0).
inherited