Let’s say that arr
is assigned:
arr = relay.zeros((m, n), dtype="int32")
then I wanna do as in python:
arr[i][j] = 1
arr[i][j] += 1
how to do these in relay?
I know index_put_()
in torch can do so.
Btw, how to initialize an array by custom?
THANKS A LOT