check if pytorch is using gpu minimal example ... import torch.nn as nn ... model.to(dev) # is on cuda (all parameters).
確定! 回上一頁