Note that Relay is a functional language, so modify tensors in place is awkward. In this case, the tensor you are modifying has zeros by default, so you can use scatter_nd
.
Note that Relay is a functional language, so modify tensors in place is awkward. In this case, the tensor you are modifying has zeros by default, so you can use scatter_nd
.