Element wise difference layer

678 views
Skip to first unread message

Alessandro Ferrari

unread,
Nov 8, 2015, 5:56:41 AM11/8/15
to Caffe Users
Is it possible to perform element-wise layers subtraction in caffe?

If it is not possible and I want to implement it, what files should I modify?
I thought about modifying the eltwise layer, so I thought about src/caffe/layers/eltwise_layer.cpp and src/caffe/layers/eltwise_layer.cu, what about the layer's parameters parsing?
Thank you

Evan Shelhamer

unread,
Nov 12, 2015, 1:36:35 PM11/12/15
to Alessandro Ferrari, Caffe Users
Set one of the `coeff` fields for the Eltwise layer to -1 to compute the difference: https://github.com/BVLC/caffe/blob/master/src/caffe/proto/caffe.proto#L607

Evan Shelhamer



--
You received this message because you are subscribed to the Google Groups "Caffe Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caffe-users...@googlegroups.com.
To post to this group, send email to caffe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/caffe-users/49f91100-ede8-4659-bdfb-41d6bc402204%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages