Skip to content

Commit 9d88f01

Browse files
authored
Merge pull request #4 from pj-parag/master
fixed cuda default to false
2 parents ee819c9 + 1226677 commit 9d88f01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

train.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
# device
4444
device = parser.add_argument_group('Device options')
4545
device.add_argument('--num_workers', default=1, type=int, help='Number of workers used in data-loading')
46-
device.add_argument('--cuda', action='store_true', default=True, help='enable the gpu' )
46+
device.add_argument('--cuda', action='store_true', default=False, help='enable the gpu' )
4747
# experiment options
4848
experiment = parser.add_argument_group('Experiment options')
4949
experiment.add_argument('--verbose', dest='verbose', action='store_true', default=False, help='Turn on progress tracking per iteration for debugging')
@@ -217,7 +217,7 @@ def save_checkpoint(model, state, filename):
217217

218218
def main():
219219
# parse arguments
220-
args = parser.parse_args(args=[])
220+
args = parser.parse_args()
221221

222222
# load training data
223223
train_dataset = AGNEWs(label_data_path=args.train_path, alphabet_path=args.alphabet_path)

0 commit comments

Comments
 (0)