simplify lambda function use in conv dnnlowp ops to fix #15911 (#15996)
authorJongsoo Park <jongsoo@fb.com>
Mon, 14 Jan 2019 07:30:09 +0000 (23:30 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 14 Jan 2019 07:32:48 +0000 (23:32 -0800)
commitca18fb85672159bf52b9a3d56738d057129b292f
tree4309ab47269d3b96ccee92bf1fa879ea096cc43b
parenta7415787ace8090c5f480a4fb6233437a3f4327e
simplify lambda function use in conv dnnlowp ops to fix #15911 (#15996)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15996

As reported in issue #15911, gcc 4.9 was getting internal compiler error due to a complex use of lambda function in conv_dnnlowp_op.cc and conv_acc16_op.cc . This diff simplifies them.

Reviewed By: viswanathgs

Differential Revision: D13648264

fbshipit-source-id: 1551ae8a0a7653749185dca51ccceb2471b96b82
caffe2/quantization/server/conv_dnnlowp_acc16_op.cc
caffe2/quantization/server/conv_dnnlowp_op.cc
caffe2/quantization/server/conv_pool_dnnlowp_op_base.h