-
Notifications
You must be signed in to change notification settings - Fork 137
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
TypeError: 'module' object is not callable #723
Comments
I have the same issue with torch 1.8.1, while it all works fine with torch 1.7.1
Then you get this error:
This error is caused by the fact that after torch has moved to these updated functions they return torch.complex64 as opposed to previously used torch.float32 My question to authors would be: is there a quick fix to this issue? |
Use
|
@OverLordGoldDragon Thank you for a quick response! |
Fixed in dev, set to merge with master. |
Hey, I have still facing this error. pip install doesn't work, are there any updates? |
@Vin-itall Please provide the following: 1) minimal code to reproduce the error; 2) output of below script: import kymatio, os, inspect, importlib
def print_substring_in_dir(backend_dir, s="fft"):
backend_files = [p.rstrip('.py') for p in os.listdir(backend_dir)
if '__' not in p]
backend_modules = {}
for f in backend_files:
try:
mname = backend_dir.replace('\\', '.').split('kymatio')[-1]
m = importlib.import_module('kymatio' + mname + '.' + f)
backend_modules[f] = m
except:
pass
print(backend_dir)
for name, m in backend_modules.items():
print("\n== {} {}".format(name, "="*80)[:80])
txt = inspect.getsource(m).split('\n')
for line in txt:
if s in line:
print(line)
print(kymatio.__version__)
_dir = os.path.dirname(os.path.abspath(kymatio.__file__))
print_substring_in_dir(os.path.join(_dir, 'scattering1d', 'backend'))
print_substring_in_dir(os.path.join(_dir, 'backend')) |
Thanks for the quick reply, turns out I was running version 0.2.0. Reinstalled kymatio, it works fine now. Thanks and sorry for any unnecessary inconvenience caused. |
Getting the following error using v0.2 on Ubuntu 20.10 using PyTorch. I was getting the same kind of error in a different line using the latest dev I built yesterday.
All I'm really doing right now is:
where
X
is a 2D tensor.The text was updated successfully, but these errors were encountered: