UnsqueezeOp class

Inserts a size-1 dimension at the specified position.

Inheritance

Constructors

UnsqueezeOp(int dim)
Creates an unsqueeze operation at dim.
UnsqueezeOp.batch()
Inserts a batch dimension at position 0.
factory

Properties

dim int
The dimension index at which to insert.
final
hashCode int
The hash code for this object.
no setterinherited
name String
The human-readable name of this operation.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(TensorBuffer input) TensorBuffer
Applies this transform to input and 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