代码报错下,显示操作数类型不受支持
self.a = c * math.ceil(np.log2(b))
TypeError: unsupported operand type(s) for *: ‘module’ and ‘int’
放在网络之前这个步骤没有问题,放进去之后出现上述问题
What values for the
b
andc
? It looks like the type of value forc
is classmodule
.先确定一下
*
两边的类型。比如print(type(c))