Closed mz3220 closed 3 years ago
**Hello
Thank you for this project
When running (DCC.py), I face the following run-time error:
builtins.IndexError: tensors used as indices must be long, byte or bool tensors
Can you help me with it.
Please have a try like this, convert Tensor to long
# print(type(pairs),type(index)) # Tensor long_index = index.long() centroids = self.U[long_index]
**Hello
Thank you for this project
When running (DCC.py), I face the following run-time error:
builtins.IndexError: tensors used as indices must be long, byte or bool tensors
Can you help me with it.