Hi Muhammad,
The problem is caused by the data type you are trying to convert into a torch.Tensor, PyTorch doesn’t support complex data structures such as dictionaries.
You can convert your data into PyTorch tensors by:
data_array = np.array({"cam":[0,1,1], "pos":[0.5,1.3,1.9]})
cam, pos = torch.tensor([data_array.item()["cam"], data_array.item()["pos"]])

or
tensorData= torch.tensor([data_array.item()["cam"], data_array.item()["pos"]])