The error is raise, as you are trying to pass multiple numpy arrays/scalars to torch.tensor as seen here:
torch.tensor(np.random.randn(1), np.random.randn(2))
> TypeError: tensor() takes 1 positional argument but 2 were given

Transform the numpy arrays to tensors first via torch.from_numpy and use torch.cat or torch.stack to create the single tensor.