Sorry, I reattaced the .npy file.
https://drive.google.com/open?id=1Vfi_3Pg46jPxTw1RpxJnbbqKjd-oZOLP 1
'''
X_test_Distance is a matrix, and each entry is still a matrix with a different shape. (Please see the picture I attached.)
'''
X_test_Distance = np.load('X_test_Distance.npy')[0:5]
A = sparse2tensor(X_test_Distance[0,:].reshape(1,-1))
print(X_test_Distance)
print(A.shape)
>>(5,36)
>>torch.Size([36, 1804, 5])



IMG_7341.JPG3024×4032 1.66 MB