标签:rom bsp col ogr res int variable auto color
import torch from torch.autograd import Variable tensor =torch.FloatTensor([[1,2],[3,4]]) variable=Variable(tensor,requires_grad=True) print(tensor) print(variable) t_out=torch.mean(tensor*tensor) v_out=torch.mean(variable*variable) v_out.backward() print(t_out) print(v_out) print(variable.grad) print(variable.data) print(variable.data.numpy())
标签:rom bsp col ogr res int variable auto color
原文地址:https://www.cnblogs.com/-xuewuzhijing-/p/12915330.html