Open YiruS opened 4 years ago
Hi,
I tried to run emd_module/test_emd(). However, after "python3 setup.py install" and run emd_module.py, it shows "AttributeError: module 'emd' has no attribute 'forward'", at line 58.
Any possible reason about it?
Here's the configuration of my machin: Python 3.7 Pytorch 1.3.0 CUDA 9.2
Thanks!
Helli, Have you solved the issue? I have the same (I am running it on the Google Colab)
I also encountered with this problem when I try to use symbolic link adding the EMD library to my own project. The solution is building it directly in your project directory.
@leelegend94 What do you mean by building it directly in your project directory, please? Could you please explain a bit more? I also encountered the same issue: "AttributeError: module 'emd' has no attribute 'forward'"
The trick is that the folder of 'emd' has the same name as the module you compiled. Simply change the folder name or the module name and modify the code accordingly.
Hi,
I tried to run emd_module/test_emd(). However, after "python3 setup.py install" and run emd_module.py, it shows "AttributeError: module 'emd' has no attribute 'forward'", at line 58.
Any possible reason about it?
Here's the configuration of my machin: Python 3.7 Pytorch 1.3.0 CUDA 9.2
Thanks!