IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo function

squeeze_shape_fn

def squeeze_shape_fn[dtype: DType, indices_type: DType](input_shape: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=input_shape.static_spec], remove_indices: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=remove_indices.static_spec]) -> IndexList[Int(1)]

Computes the output shape for the mo.squeeze_shape graph op.

Returns:

IndexList[Int(1)]

Was this page helpful?