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

too many indices for array #3

Open
yueanga opened this issue Mar 28, 2021 · 2 comments
Open

too many indices for array #3

yueanga opened this issue Mar 28, 2021 · 2 comments

Comments

@yueanga
Copy link

yueanga commented Mar 28, 2021

when i ran with

python main.py --train_folder </.../...> --test_folder</.../...>

an error occured in around line 161

loss_nle_mean(torch.mean(nle_value).data.cpu( ).numpy( )[ ])
IndexError:too many indices for array: array is 0-dimensional,but 1 were indexed

how can i solve this? thank you!

@liaini
Copy link

liaini commented Dec 3, 2021

loss_nle_mean(torch.mean(nle_value).data.cpu().numpy()) works~

@zideliu
Copy link

zideliu commented May 6, 2022

have you run this code succeedly?
I meet "inplace operation" error,

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

3 participants