Squeeze
class Squeeze<T : DType, V>(ctx: ExecutionContext, val dim: Int? = null) : TensorTransform<T, V> (source)
Removes a dimension of size 1 at the specified position.
Parameters
T
The tensor data type
V
The value type
ctx
The execution context for tensor operations
dim
The dimension to remove (must have size 1), or null to remove all size-1 dims