Hi,
I’m wondering if there is any alternative concatenation method that concatenate two tensor without memory copying?
Currently, I use t = torch.cat([t1, t2], dim=0) in my data pre-processing. However, I got the out-of-memory error because there are many big tensors need to be concatenated.
I have searched around and read some threads like tensor appending 72, Torch.cat() blows up memory required 80. But still cannot find a desirable solutions to solve the memory consuming problem.