现在试用numpy, 使用来自Torch 变量的相同值 x_ = x.data.cpu().numpy() y_ = y.data.cpu().numpy() def mul_(d,f): g = d*f return g %timeit mul_(x_,y_)
確定! 回上一頁