-
Notifications
You must be signed in to change notification settings - Fork 31
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
ModuleNotFoundError: No module named '__main__.complex_utils'; '__main__' is not a package #14
Comments
Are you running this from an interactive session (e.g. ipython)? If so, relative import ( |
Hi tridao Regards |
The butterfly matrix isn't explicitly generated (as that would use O(n^2) space and takes O(n^2) time to multiply by a vector). Instead, we provide a |
In butterfly connection, each node is connected to two other nodes, so why it is not 2n log n? Also can you please tell me where in the code you multiply the weight vector and the input features? and where you update the vector of weights? |
You're right, it's 2n log n parameters. Remember to pass in
The weights are stored in the attribute |
If you're asking about how to compute the gradient wrt to the weight:
|
Okay great. I am kind of confused, how did you calculate loss or which loss function you actually used? |
It can be used with any differentiable loss function. |
Hi tridao, |
We only use ray to run the experiments (parallel runs and hyperparameter optimization). |
Hello,
I am getting this error when i ran "butterfly_multiply" module.
ModuleNotFoundError Traceback (most recent call last)
in
4 from torch import nn
5
----> 6 from .complex_utils import complex_mul
7
8 use_extension = True
ModuleNotFoundError: No module named 'main.complex_utils'; 'main' is not a package
Can you please help me solve the problem.
Thanks,
Dhruba
The text was updated successfully, but these errors were encountered: