Traceback (most recent call last):
File "E:\Anaconda3\envs\pipei\lib\site-packages\torch\serialization.py", line 308, in _check_seekable
f.seek(f.tell())
AttributeError: 'NoneType' object has no attribute 'seek'
文中对应代码:
try: f.seek(f.tell()) return True except (io.UnsupportedOperation, AttributeError) as e: raise_err_msg(["seek", "tell"], e) return False