Hi everyone this is my first post. I would like to contribute to an issue on github’s pytorch codebase. I am having a hard time finding where in the codebase functions are that change values inside of a tensor. For example if you have:
x = torch.tensor([[1,2],[3,4]])
and then you
x[0,1] = 1
What is happening under the hood or what functions are being called to allow index [0,1] = 1
I want to do some error checking in this scenario to throw an error if trying to write to a read only memory if tensor was created from a numpy array with mmap =‘r’ . I have an idea of how i want to error check, but I am having a hard time finding where to add my code.
I hope posting this in the c++ category was okay, because I am not sure where the correct category would be.