.size() TypeError: ‘int’ object is not callable tensor.permute make_grid()
1.TypeError: ‘int’ object is not callable 问题解决
变量名和函数名写重复了,系统傻了,就返回了一个int类型
2.size()的问题
def show_batch(batch):
normed = batch * 0.5 + 0.5
is_video_batch = len(normed.size()) > 4
想搞清楚这里的输入和输出
首先,size是ndarray的一个属性,但是不带括号
x = np.array([[1, 2, 3], [4, 5,