M
Modular15mo ago
seb

Populating values of tensor

Currently working on creating a one-hot encoding input tensor by initializing the tensor with zeros, and then setting individual cells of the 2D tensor to 1. However, trying to set the value with tensor[i][j] = 1 is setting whole rows of the tensor at a time; how can I do this?
1 Reply
ModularBot
ModularBot15mo ago
Congrats @seb, you just advanced to level 2!
Want results from more Discord servers?
Add your server