Mojo function
extend_shape
extend_shape[rank: Int](in_shape: Index[rank], first: Int, last: Int) -> Index[(rank + 2)]
Extend input shape by inserting first
and last
at both ends.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!