Mojo function
extend_shape
extend_shape[rank: Int](in_shape: IndexList[rank], first: Int, last: Int) -> IndexList[(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!