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

Bug in losses_utils.reduce_dimensions #140

Closed
gpengzhi opened this issue Apr 29, 2019 · 0 comments
Closed

Bug in losses_utils.reduce_dimensions #140

gpengzhi opened this issue Apr 29, 2019 · 0 comments

Comments

@gpengzhi
Copy link
Collaborator

https://github.com/asyml/texar/blob/master/texar/losses/losses_utils.py#L166
If average_axes and sum_axes are integers, len(average_axes) (https://github.com/asyml/texar/blob/master/texar/losses/losses_utils.py#L183) and len(sum_axes) (https://github.com/asyml/texar/blob/master/texar/losses/losses_utils.py#L190) will cause error since object of type 'int' has no len().

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

1 participant