TypeError: ‘module’ object is not callable 解决方法
这个问题是因为python imaport有两种方式
1,import xx as yy (所有导入的东西使用时需加上模块名的限定)
2, from xx import yy (不需要加上模块限定词,可以直接当成函数用)
#可以正常运行 from torchsummary import summary summary(model,(1,256,256)) #报错:TypeError: 'module' object is not callable import torchsummary as summary summary(model,(1,256,256))



