pytorch运行程序,报预警,信息如下:
Warning: variables __flops__ or __params__ are already defined for the moduleConv2d ptflops can affect your code!
Warning: variables __flops__ or __params__ are already defined for the moduleBatchNorm2d ptflops can affect your code!
Warning: variables __flops__ or __params__ are already defined for the moduleLinear ptflops can affect your code!
Warning: variables __flops__ or __params__ are already defined for the moduleLinear ptflops can affect your code!
Warning: variables __flops__ or __params__ are already defined for the moduleLinear ptflops can affect your code!
Warning: variables __flops__ or __params__ are already defined for the moduleLinear ptflops can affect your code!
Warning: variables __flops__ or __params__ are already de
在运行PyTorch程序时遇到了关于`variables_flops_or_params`的警告,这源于使用get_model_complexity_info计算模型FLOPs和Params。要消除此警告,可以临时注释掉相关代码或寻找其他计算模型复杂性的替代方案。
订阅专栏 解锁全文
898

被折叠的 条评论
为什么被折叠?



