Enable conv+add fusion, same as conv+sum (#15268)
authorGu, Jinghui <jinghui.gu@intel.com>
Mon, 7 Jan 2019 22:10:27 +0000 (14:10 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 7 Jan 2019 22:42:45 +0000 (14:42 -0800)
commit49ba2cb79625fcf5f14ea3757f114fc1cb623e50
treea38dc853ee9a8aa94fbde89da40b87b66e813f21
parent76feb8c40fcfa49c6555ff7d89a0380406577c7a
Enable conv+add fusion, same as conv+sum (#15268)

Summary:
Enable conv+add fusion, same as conv+sum

Caution: only element-wise add is supported on IDEEP without scalar
broadcast. Otherwise, the fusion is illegal.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15268

Differential Revision: D13577375

Pulled By: yinghai

fbshipit-source-id: 92c9c4b667c5ca5f7a262a5bffaa8aa68eeff3bd
caffe2/opt/optimize_ideep.cc
caffe2/python/ideep/convfusion_op_test.py