Building custom Caffe layer in python

前端 未结 2 1226
野趣味
野趣味 2020-12-07 17:28

After parsing many links regarding building Caffe layers in Python i still have difficulties in understanding few concepts. Can please someone clarify them?

2条回答
  •  醉话见心
    2020-12-07 17:52

    Why it should be 2?

    That specific gist is talking about the Euclidian loss layer. Euclidian loss is the mean square error between 2 vectors. Hence there must be 2 vectors in the input blob to this layer. The length of each vector must be same because it is element-wise difference. You can see this check in the reshape method.

    Thanks.

提交回复
热议问题