You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
环境为Anaconda+python3.8, fastNLP版本为1.0.1,可以正常调用其他模块,但无法调用DataSetIter和BatchIter模块。描述如下:
File "./stock_energy/aegan.py", line 10, in
from fastNLP import DataSet, DataSetIter, RandomSampler, SequentialSampler
ImportError: cannot import name 'DataSetIter' from 'fastNLP' (/Users/mac/opt/anaconda3/lib/python3.8/site-packages/fastNLP/init.py)
Python 3.8.3 (default, Jul 2 2020, 11:26:31)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
from fastNLP import DataSet
from fastNLP import RandomSampler
from fastNLP import SequentialSampler
from fastNLP import DataSetIter
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'DataSetIter' from 'fastNLP' (/Users/mac/opt/anaconda3/lib/python3.8/site-packages/fastNLP/init.py)
import fastNLP
print(fastNLP.version)
1.0.1
The text was updated successfully, but these errors were encountered:
Describe the bug
环境为Anaconda+python3.8, fastNLP版本为1.0.1,可以正常调用其他模块,但无法调用DataSetIter和BatchIter模块。描述如下:
File "./stock_energy/aegan.py", line 10, in
from fastNLP import DataSet, DataSetIter, RandomSampler, SequentialSampler
ImportError: cannot import name 'DataSetIter' from 'fastNLP' (/Users/mac/opt/anaconda3/lib/python3.8/site-packages/fastNLP/init.py)
Python 3.8.3 (default, Jul 2 2020, 11:26:31)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
The text was updated successfully, but these errors were encountered: