| ▲ | sampo 5 days ago | |
> Suppose you pass a parameter, N, and you also would like to pass a tensor, and you would like to specify the tensor's shape (N, N). You can do that, and it might be cleaner and less lines of code that way. But you don't necessarily need to pass the array dimensions as a parameter, as you can call `size` or `shape` to query it inside your function. | ||
| ▲ | thatjoeoverthr 4 days ago | parent [-] | |
True! I just wanted to highlight it. (I had to do this at an interface because the ABI doesn’t pass the shape.) | ||