UnsqueezeOp class
Inserts a size-1 dimension at the specified position.
- Inheritance
-
- Object
- TransformOp
- UnsqueezeOp
Constructors
- UnsqueezeOp(int dim)
-
Creates an unsqueeze operation at
dim. - UnsqueezeOp.batch()
-
Inserts a batch dimension at position 0.
factory
Properties
Methods
-
apply(
TensorBuffer input) → TensorBuffer -
Applies this transform to
inputand returns the result.override -
call(
TensorBuffer input) → TensorBuffer -
Alias for apply.
inherited
-
computeOutputShape(
List< int> inputShape) → List<int> -
Computes the output shape for a given
inputShape.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited