In the argument parsers for all the generate_paraphrases* python files, the argument device_ids does not have its data type specified. As a result, non-default specifications such as --device_ids 0 lead to the parser reading 0 as a string instead of an integer, which leads to CUDA runtime errors.
In the argument parsers for all the
generate_paraphrases*
python files, the argumentdevice_ids
does not have its data type specified. As a result, non-default specifications such as--device_ids 0
lead to the parser reading0
as a string instead of an integer, which leads to CUDA runtime errors.I propose the following amendment:
The affected lines are below:
https://github.com/tagoyal/sow-reap-paraphrasing/blob/master/generate_paraphrases_baseline.py#L19
https://github.com/tagoyal/sow-reap-paraphrasing/blob/master/generate_paraphrases_gt_reap.py#L19
https://github.com/tagoyal/sow-reap-paraphrasing/blob/master/generate_paraphrases_sow_reap.py#L30