practical-pytorch
practical-pytorch copied to clipboard
Update train.py
Use tensor.item() to convert a 0-dim tensor to a Python number