How to replace a torch.tensor in-place with a new padded tensor?

后端 未结 0 1386
不知归路
不知归路 2021-01-22 04:49

I am trying to figure out how I overwrite a torch.tensor object, located inside a dict, with a new torch.tensor that is a bit longer due to padding.

# pad the ten         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题