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

fix format_err_str function in mytorch.py #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tianyilt
Copy link

@tianyilt tianyilt commented Nov 9, 2020

Hey, Thanks for your help and I succeed in run it.
But there may exist some little bug.
I try to fix this error type: list has no attribute ravel.
The error raises if we run the following:
python exp.py --net rnn_vgg16unet3_gruunet4.64.3 --cmd eval --iter last --eval-dsets tat-subseq --eval-scale 0.5
Only np array has attribute ravel. But isinstance(v, (np.ndarray, list)) make list operate list.ravel which will cause error.

Sorry for me can't provide the snapshot because I get off work and forget to save.

Fix error type: list has no attribute ravel.
The error raises if we run the following:
python exp.py --net rnn_vgg16unet3_gruunet4.64.3 --cmd eval --iter last --eval-dsets tat-subseq --eval-scale 0.5
Only np array has attribute ravel. But isinstance(v, (np.ndarray, list)) make list operate list.ravel which will cause 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

Successfully merging this pull request may close these issues.

None yet

1 participant