Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to run EMD #6

Open
YiruS opened this issue Mar 5, 2020 · 4 comments
Open

Failed to run EMD #6

YiruS opened this issue Mar 5, 2020 · 4 comments

Comments

@YiruS
Copy link

YiruS commented Mar 5, 2020

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!

@levtelyatnikov
Copy link

levtelyatnikov commented Mar 13, 2021

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)

@leelegend94
Copy link

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.

@alejandroHdzV
Copy link

@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'"

@ky-zhou
Copy link

ky-zhou commented Oct 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants