1.Tshape=(1,2,3,4)
net.blobs[‘data’].reshape(*Tshape)
这里的*的作用是将Tshape的所有元素都展开作为参数,其效果为 net.blobs[‘data’].reshape(1,2,3,4)
Python 问题记录
最新推荐文章于 2025-09-26 15:59:37 发布
1.Tshape=(1,2,3,4)
net.blobs[‘data’].reshape(*Tshape)
这里的*的作用是将Tshape的所有元素都展开作为参数,其效果为 net.blobs[‘data’].reshape(1,2,3,4)

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