Skip to content

Conversation

@zaemyung
Copy link

@zaemyung zaemyung commented Feb 3, 2021

  • Fixes the following warning about the nonzero method:
......... : UserWarning: This overload of nonzero is deprecated:
        nonzero()
Consider using one of the following signatures instead:
        nonzero(*, bool as_tuple) (Triggered internally at  /pytorch/torch/csrc/utils/python_arg_parser.cpp:882.)
  bucket_id = valid_buckets.nonzero()[0].item()

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.

1 participant