Closed lukk47 closed 5 years ago
Yeah, this was written in 2017 before PyTorch merged variables and tensors. I must have used PyTorch 0.2.0 or even 0.1.12 but I guess 0.3.1 would work too. Sorry for not documenting this.
Thanks, I will try and post the version that works.
Hi, I tested it out and pytorch 0.3.1 works but 0.2.0 doesn't. I must have updated the code to 0.3.1 at some point.
Cool, I will start will 0.3.1 then. Thanks!
0.3.1 works. But from the first iteration, I came across with this loss explosion problem. I use the original source code with 8 GPUs. Do you any suggestions?
Epoch: [0][0/7207] Time 59.704 (59.704) Data 11.010 (11.010) Class 3.5564 (3.5564) Cons 0.0247 (0.0247) Prec@1 0.000 (0.000) Prec@5 0.000 (0.000)
Traceback (most recent call last):
File "/opt/conda/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/opt/conda/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/scratch/project/pytorch/experiments/imagenet_valid.py", line 82, in
I move following question to a previous issue
in my case, pytorch0.4.1 + py3 can't work.
Hi, the code will be update for a new version of pytorch?
I'm trying to do this by my own, but I'm new to pytorch and finding some issues. After changing the .data
to item
, I try to run the code but receive RuntimeError: cuDNN error: CUDNN_STATUS_BAD_PARAM
May I know the version you were using? The code is not compatible with latest pytorch. Thank yoU!