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

TypeError: mean() received an invalid combination of arguments #4

Closed
cumthxy opened this issue Apr 5, 2020 · 5 comments
Closed

TypeError: mean() received an invalid combination of arguments #4

cumthxy opened this issue Apr 5, 2020 · 5 comments

Comments

@cumthxy
Copy link

cumthxy commented Apr 5, 2020

a = torch.mean(x, (1,2,3))
TypeError: mean() received an invalid combination of arguments - got (Tensor, tuple), but expected one of:

@YapengTian
Copy link
Collaborator

More details?

@YapengTian
Copy link
Collaborator

The issue is probably from the wrong size of x. Please make sure that you provide the correct input.

@DrSleep
Copy link

DrSleep commented Jun 12, 2020

This error occurs when trying to run the first example from README:
python dap_sep.py --input_mix data/sep/violin_basketball.wav --output output/sep

It happens because in requirements.txt the specified version of pytorch is 0.4.1, which does not support torch.mean across multiple dimensions at once - see docs. The correct version of pytorch should at least be 1.1.0.

Please update either the requirements file or the provided example

@YapengTian
Copy link
Collaborator

Done. Thanks!

@ludwigwittgenstein2
Copy link

@DrSleep : I seem to have same issue, not able to fix it. I have Pytorch -- 1.11.0+cu113

Suggestions?

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

4 participants