-
-
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
NameError encountered in tutorial #47
Comments
Are you using typeguard v2.*? (Later versions of typeguard have broken things in a variety of odd ways.) In any case, as mentioned at the top of the README, I now strongly recommend using jaxtyping instead of this package. |
Thank you! Works now after the fix, at |
hi, @ShashankSule I am facing same issue with you and also same with using torch_pesq as well. I tried your method of |
I'm trying out the example in the readme; in particular, I am running
However, after executing
func(rand(3), rand(3))
(which is supposed to work), I getTraceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/shashanksule/miniforge3/envs/pr/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "/Users/shashanksule/miniforge3/envs/pr/lib/python3.9/site-packages/torch_pesq/loss.py", line 320, in forward d_symm, d_asymm = self.raw(ref, deg) File "/Users/shashanksule/miniforge3/envs/pr/lib/python3.9/site-packages/torch_pesq/loss.py", line 174, in raw ) -> Tuple[TensorType["batch", "sample"], TensorType["batch", "sample"]]: NameError: name 'batch' is not defined
I get the same error even if I define named tensors with
names = ("batch",)
and enter them intofunc
. What's going wrong here?The text was updated successfully, but these errors were encountered: