- 报错:
IndexError: tuple index out of range
- 解决方法:
进入apex/apex/amp/utils.py
文件
将:if cached_x.grad_fn.next_functions[1][0].variable is not x:
修改为:if cached_x.grad_fn.next_functions[0][0].variable is not x:
重新操作:
进入:cd apex
执行:python setup.py install