在使用text2sql-baseline推理的时候出现
Traceback (most recent call last):
File "./script/text2sql_main.py", line 277, in
inference(config)
File "./script/text2sql_main.py", line 156, in inference
test_reader = DataLoaderClass(config, test_set, batch_size=1, shuffle=False)
File "Research/NLP/Text2SQL-BASELINE/text2sql/dataproc/dataloader.py", line 144, in init
self.dataloader = paddle.io.DataLoader.from_generator(
AttributeError: type object 'DataLoader' has no attribute 'from_generator'
在使用text2sql-baseline推理的时候出现 Traceback (most recent call last): File "./script/text2sql_main.py", line 277, in
inference(config)
File "./script/text2sql_main.py", line 156, in inference
test_reader = DataLoaderClass(config, test_set, batch_size=1, shuffle=False)
File "Research/NLP/Text2SQL-BASELINE/text2sql/dataproc/dataloader.py", line 144, in init
self.dataloader = paddle.io.DataLoader.from_generator(
AttributeError: type object 'DataLoader' has no attribute 'from_generator'