caffe2 icon indicating copy to clipboard operation
caffe2 copied to clipboard

Does python API support element-wise multiplication now?

Open jimmyoic opened this issue 7 years ago • 4 comments

I can't find the multiply layer in both python API and code (looks like there's only Sum and Transpose now), but there is the implementation of the operators,

How can I use the multiply operator in cnnModelHelper? Thanks.

jimmyoic avatar May 04 '17 08:05 jimmyoic

https://caffe2.ai/docs/operators-catalogue.html

I guess I can follow the document here, but it's unclear how exactly I can use these API

jimmyoic avatar May 04 '17 09:05 jimmyoic

mul

keduong avatar May 04 '17 19:05 keduong

https://caffe2.ai/docs/operators-catalogue.html#mul

net = core.Net('net')
out = net.Mul([X, Y])

https://github.com/caffe2/caffe2/search?l=Python&q=mul&type=&utf8=%E2%9C%93

futurely avatar May 18 '17 08:05 futurely

Hello @keduong @futurely ,

is this the similar way to use the Add operator as well as all other operators in the catalogue?

CarlosYeverino avatar Oct 27 '18 14:10 CarlosYeverino