google/tirg

"ValueError: Type must be a sub-type of ndarray type"

Opened this issue · 0 comments

File "/content/drive/My Drive/tirg/tirg/torch_functions.py", line 41, in pairwise_distances
x_norm = (np.power(x, 2)).sum(1).view(1,-1)
ValueError: Type must be a sub-type of ndarray typearises

How to resolve this error!