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