0
How to fix this model parameter error in pytorch python?
ValueError Traceback (most recent call last) <ipython-input-19-c5cf61368506> in <module>() 41 #(input_dim, output_dim) 42 criterion = nn.MSELoss () ---> 43 [w, b] = model.parameters() 44 def get_param_values(): 45 return w.data [0] [0], b .data [0] ValueError: not enough values to unpack (expected 2, got 0) https://code.sololearn.com/csXZEfEnqjAH
4 Réponses