facebookresearch/ELF

Python 3.7: SyntaxError: invalid syntax due to the use of `async` which is a keyword

REASY opened this issue · 0 comments

REASY commented

Followed https://github.com/facebookresearch/ELF#install-scripts and got Python 3.7.9 installed, where async is a keyword: https://www.python.org/dev/peps/pep-0492/#deprecation-plans

At least those places need a fix:

def transfer_cpu2gpu(self, batch_gpu, async=True):

def transfer_cpu2cpu(self, batch_dst, async=True):

image

Other references: