PyTorch code for CVPR 2018 paper: Learning to Compare: Relation Network for Few-Shot Learning (Few-Shot Learning part)
1.04k
stars
267
forks
source link
fix .data[0] to .item(), fix in test episode error variable should in… #21
Closed
Duan-JM closed 5 years ago
loss.data[0]
form, we need to change it intoloss.item()
.predict_labels
andtest_labels
are not in GPU. So I fixed it..DStore
in dirAlphabet_of_the_Magi
.The code is clean and elegant, reading your code is my honor.
Vincent