T=tensor([101,123,414,463][234,903,313,341]...)
train=TensorDataset(T)
train_dataloader=Dataloader(train)
Now I would like to update tensor T[0]
i.e tensor
T[0]=tensor([101,123,567,463])
for this i have tried as follows:
train_dataloader.Dataset[0].index_copy_(0,tensor([2]),tensor([567])
is it possible to modify this way or not? Any kind of reference is helpful
Dataset
by index and modify it, same as one cannot access a tensor element by index and modify it $\endgroup$