对于部署,您只需丢弃丢失层,在您的情况下 "EuclideanLoss" 层。你的网络输出是 "bottom" 你输了损失层。
"EuclideanLoss"
"bottom"
对于 "SoftmaxWithLoss" 层(和 "SigmoidCrossEntropy" ) 你需要 的 更换 强> 损耗层,因为损耗层在其内部包括额外的层(出于计算原因)。
"SoftmaxWithLoss"
"SigmoidCrossEntropy"