Skip to content

.output_shape()

Infer the output shape from inputs without executing the op.

The default returns the shape of the first Tensor input (correct for element-wise ops). Override for ops where the output shape differs.