当前位置: 首页> 汽车> 新车 > b2b电子商务平台盈利模式有哪些_微商管理系统_营销推广活动策划_营销策划方案1000例

b2b电子商务平台盈利模式有哪些_微商管理系统_营销推广活动策划_营销策划方案1000例

时间:2025/7/12 2:20:01来源:https://blog.csdn.net/O_oTry/article/details/147095399 浏览次数: 0次
b2b电子商务平台盈利模式有哪些_微商管理系统_营销推广活动策划_营销策划方案1000例

基本方法

print(model)
print(type(model))# 模型参数
numEl_list = [p.numel() for p in model.parameters()]
total_params_mb = sum(numEl_list) / 1e6print(f'Total parameters: {total_params_mb:.2f} MB')
# sum(numEl_list), numEl_list
print(sum(numEl_list))
print(numEl_list)

在这里插入图片描述

# 查看模型参数的基本方法
def get_param_count(model):return sum(p.numel() for p in model.parameters() if p.requires_grad)param_count = get_param_count(model)
print(f"Model Parameter Count: {param_count}")# 计算每层参数量和大小
def print_layer_params_count(model):for name, param in model.named_parameters():if param.requires_grad:print(f"{name} : {param.numel()}")print(f"{name} : {param.shape}")print_layer_params_count(model)

在这里插入图片描述

使用Pytorch中的torchsummary包

from torchsummary import summary
summary(model, input_size=(1, 1, 128, 128, 32))

在这里插入图片描述

使用第三方库torchinfo

from torchinfo import summary
summary(model, input_size=(1, 1, 128, 128, 32))

在这里插入图片描述

关键字:b2b电子商务平台盈利模式有哪些_微商管理系统_营销推广活动策划_营销策划方案1000例

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: