sentence-similarity icon indicating copy to clipboard operation
sentence-similarity copied to clipboard

with py2 torch0.3.1 break with an error

Open herbertchen1 opened this issue 6 years ago • 2 comments

Traceback (most recent call last): File "/baseline/sentence-similarity/main.py", line 67, in runner.run(args.epochs, train_loader, dev_loader, test_loader, args.log_interval) File "/baseline/sentence-similarity/runners/init.py", line 76, in run trainer.run(train_loader, max_epochs=epochs) File "build/bdist.linux-x86_64/egg/ignite/engine/engine.py", line 223, in run File "build/bdist.linux-x86_64/egg/ignite/engine/engine.py", line 188, in _handle_exception IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices what should i do to fix it?

herbertchen1 avatar Jun 05 '18 01:06 herbertchen1

Hi @herbertchen1 thanks for creating the issue. May I please know the exact command you ran?

Also, this repo is designed with Python 3.6 in mind.

tuzhucheng avatar Jun 05 '18 15:06 tuzhucheng

Thanks very much, its very helpful!!!

herbertchen1 avatar Jun 13 '18 07:06 herbertchen1