Float32Tensor class abstract
- Implemented types
- Implementers
Constructors
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
-
ceil(
) → Tensor< double> -
Calculates
x.ceil()
for each element.inherited -
clamp(
double lowerLimit, double upperLimit) → Tensor< double> -
Calculates
x.clamp(lowerLimit, upperLimit)
for each element.inherited -
cos(
) → Tensor< double> -
Calculates
cos(x)
for each element.inherited -
div(
Tensor< double> right, {bool noNan = false}) → Tensor<double> -
Calculates element-wise fraction.
inherited
-
divScalar(
num right, {bool noNan = false, bool swapArguments = false}) → Tensor< double> -
Calculates element-wise fraction.
inherited
-
exp(
) → Tensor< double> -
Calculates
exp(x)
for each element.inherited -
floor(
) → Tensor< double> -
Calculates
x.floor()
for each element.inherited -
getFlat(
int index) → double -
inherited
-
log(
) → Tensor< double> -
Calculates
log(x)
for each element.inherited -
max(
Tensor< double> right) → Tensor<double> -
Calculates element-wise maximum.
inherited
-
min(
Tensor< double> right) → Tensor<double> -
Calculates element-wise minimum.
inherited
-
mulScalar(
num s) → Tensor -
Multiplies tensor elements with a scalar.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pow(
Tensor< double> right) → Tensor<double> -
Calculates element-wise power.
inherited
-
scale(
num s) → Tensor -
inherited
-
scaleInverse(
num s) → Tensor -
inherited
-
sin(
) → Tensor< double> -
Calculates
sin(x)
for each element.inherited -
sq(
) → Tensor< double> -
Calculates
x * x
(square) for each element.inherited -
sqrt(
) → Tensor< double> -
Calculates
sqrt(x)
(square root) for each element.inherited -
tan(
) → Tensor< double> -
Calculates
tan(x)
for 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> -
A shorthand for div.
inherited
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator unary-(
) → Tensor< double> -
Calculates
scale(-1.0)
.inherited