When I follow the signature for torch.cat
described on the docs, and try to pass a dim
argument, I get the error
TypeError: cat() takes no keyword arguments
I also noticed that when I do help(torch.cat)
, the documentation that pops up uses dimension
instead of dim
as the name of the argument which indicates along which axis to concatenate the tensors.
I understand that the function works by passing the dimension as a non-keyword argument, but then isn’t documenting it with dim=0
misleading?