I am following this doc for hstack.
a = torch.tensor([1, 2, 3])
b = torch.tensor([4, 5, 6])
torch.hstack((a,b))
But I keep getting the error:
AttributeError: module 'torch' has no attribute 'hstack'
Here is the torch version that results in this error:
torch.__version__
'1.6.0+cpu'
What am I doing wrong?