Open jessica-santos opened 5 years ago
@jessica-santos change .data
to .data.item()
may work for you
You need to change things in both main.py and losses.py
I looked in the forks of the code and found someone who had already done the changes, and just copied those changes, I used this one: https://github.com/bl0/mean-teacher/tree/master/pytorch/mean_teacher
Thank you!
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