caffe是使用loss_weight控制loss的传递 在基本类Layer里的函数如下 对于loss Layer loss_weight非0,对于非loss Layer,loss_weight都是0 所以Layer对网络loss的贡献值也为0