getOutputShape

abstract fun getOutputShape(inputShape: Shape): Shape(source)

Computes the output shape that would result from applying this transform to data with the given input shape.

This method enables shape inference without executing the actual transformation, which is useful for:

  • Validating pipeline compatibility

  • Pre-allocating output buffers

  • Debugging shape mismatches

Return

The shape of the output data after transformation

Parameters

inputShape

The shape of the input data