JayYip / m3tl

BERT for Multitask Learning
https://jayyip.github.io/m3tl/
Apache License 2.0
545 stars 125 forks source link

error: Invalid argument: cycle_length must be > 0 #90

Open AlexYoung757 opened 3 years ago

AlexYoung757 commented 3 years ago

0.3.4版本,执行notebook示例:Run Self Defined Problem,出现以下错误: InvalidArgumentError: 2 root error(s) found. (0) Invalid argument: cycle_length must be > 0 [[node ExperimentalParallelInterleaveDataset (defined at /home/appadmin/anaconda3/envs/multi_task/lib/python3.6/site-packages/bert_multitask_learning-0.3.4-py3.6.egg/bert_multitask_learning/read_write_tfrecord.py:520) ]] [[MultiDeviceIteratorToStringHandle/_8865]] (1) Invalid argument: cycle_length must be > 0 [[node ExperimentalParallelInterleaveDataset (defined at /home/appadmin/anaconda3/envs/multi_task/lib/python3.6/site-packages/bert_multitask_learning-0.3.4-py3.6.egg/bert_multitask_learning/read_write_tfrecord.py:520) ]] 0 successful operations. 0 derived errors ignored.

运行环境如下: tensorflow==1.14.0 keras==2.3.1 tensor2tensor==1.15.5

how to solve it