facebookarchive / caffe2

Caffe2 is a lightweight, modular, and scalable deep learning framework.
https://caffe2.ai
Apache License 2.0
8.42k stars 1.95k forks source link

Does python API support element-wise multiplication now? #501

Open jimmyoic opened 7 years ago

jimmyoic commented 7 years ago

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 commented 7 years ago

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

keduong commented 7 years ago

mul

futurely commented 7 years ago

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

CarlosYeverino commented 5 years ago

Hello @keduong @futurely ,

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