I code a function which implements some operations including torch.mm 45, torch.index_select and torch.cc 29. However, there comes out an AssertionError, leaf variable was used in an inplace operation.
In the source code of Variable.py 45(line 199), I found the assertion, assert self.__version == 0. But it’s not clear to say what is going wrong here. Could anyone help me on this?