future = tasks.async(future, loop=self) ^ SyntaxError: invalid syntax

问题:

 原因:

python3.7已经移除了async关键字,而用non_blocking代替

更改:

将async更改为cuda

new_task = not isinstance(future, futures.Future)
future = tasks.cuda(future, loop=self)
原文地址:https://www.cnblogs.com/miracleflower/p/14755875.html