C2_M1_Lab_1_tuning_and_metrics

Hi,

In the section of “How other metrics change with learning rate” of this notebook, the helper_utils.plot_metrics_vs_learning_rate(df_metrics) returned an error that said,

TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.

Thank you.

Hi @Aunuun_Jeffry,

I ran the lab, and everything executed successfully for me. It is possible that you made changes in the lab because of which you are getting the error.

Please follow the instructions provided to reset your lab files.

Best,
Mubsi

1 Like