Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Remove mentions to asyncreserved keyword for usage with Python 3.7 #135

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

douglasrizzo
Copy link

In this PR, I've deleted all mentions to the async keyword in the master branch of ELF to resume compatibility of the repository with Python 3.7

ELF uses async as a name for variables and function parameters. In Python 3.7, async has become a reserved word. The word is only used as argument to the copy_ and cuda methods, which are methods from the pytorch.Tensor object. But these methods don't use the value of the async argument for anything.

By removing mentions to the now-reserved keyword, no change in the behavior of the package is expected. I've tested training a model using ./train_minirts.sh on Python 3.7 with both CPU and GPU and everything worked. I believe this fixes #124 and #127.

I created a new PR because I used my master branch as the head repository in #134, which was a bad idea on my side.

in python37, async is a reserved word, so I changed it
removed a runaway '=True'
@carlosgmartin
Copy link

Any updates on this?

@douglasrizzo
Copy link
Author

I don't think this project is still active. If you want to use this PR, you can fork the repo and apply the PR to your fork. Or just clone my fork, where I fixed this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can not run train_minirts.sh
3 participants