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

For model long-t5-tglobal-x, fix 'float' object cannot be interpreted as an integer #17777

Merged
merged 1 commit into from
Jun 20, 2022

Commits on Jun 19, 2022

  1. Update modeling_longt5.py

    On line 180, `torch.tensor(-1.0, xxx)` gives the error "TypeError: 'float' object cannot be interpreted as an integer" 
    This is because the dtype here is `int64`.  For `dtype=int64`, this needs to simply be `-1`.  
    This impacts the long-t5-tglogbal-x model.  It does not impact the long-t5-local-x version which does not appear to call this line.
    bjascob authored Jun 19, 2022
    Configuration menu
    Copy the full SHA
    aab6939 View commit details
    Browse the repository at this point in the history