Closed ujjawalcse closed 2 years ago
@Impavidity , Also, getting error in executing the following
dataset = registry.construct('dataset_infer',{
"name": "spider", "schemas": schema, "eval_foreign_key_maps": eval_foreign_key_maps,
"db_path": "data/sqlite_files/"
})
ValueError Traceback (most recent call last)
<ipython-input-57-de0cacb4ab13> in <module>()
1 dataset = registry.construct('dataset_infer',{
2 "name": "spider", "schemas": schema, "eval_foreign_key_maps": eval_foreign_key_maps,
----> 3 "db_path": "data/sqlite_files/"
4 })
1 frames
/content/gap-text2sql/rat-sql-gap/seq2struct/utils/registry.py in instantiate(callable, config, unused_keys, **kwargs)
42 signature = inspect.signature(callable.__init__)
43 print('signature:',signature)
---> 44 for name, param in signature.parameters.items():
45 print("name:",name)
46 print("param:",param)
ValueError: Unsupported kind for param args: 2
Please help me out. Thanks again.
Sorry, I was using pytorch 1.10 version. Running fine with pytorch 1.5 version. Thanks
Hey @Impavidity @TheurgicDuke771 , I'm facing the same issue, I think there is no issue with data( Spider) I'm using.
We can see the folder structure below,
Please guide me to tackle this issue. Thanks in advance.