From 07197fb9b33487cc1633623b9681ff8778fde03a Mon Sep 17 00:00:00 2001 From: Wangzheee <634486483@qq.com> Date: Wed, 16 Jun 2021 11:17:25 +0800 Subject: [PATCH] add_op_extra: elementwise_add, mul (#33491) --- paddle/fluid/operators/compat/elementwise_add.pbtxt | 8 ++++++++ paddle/fluid/operators/compat/mul.pbtxt | 12 ++++++++++++ 2 files changed, 20 insertions(+) diff --git a/paddle/fluid/operators/compat/elementwise_add.pbtxt b/paddle/fluid/operators/compat/elementwise_add.pbtxt index 3e96147ef88..6a3d0a9b3a1 100644 --- a/paddle/fluid/operators/compat/elementwise_add.pbtxt +++ b/paddle/fluid/operators/compat/elementwise_add.pbtxt @@ -15,6 +15,14 @@ def { } } extra { + attrs { + name: "out_threshold" + type: FLOAT + } + attrs { + name: "Out0_threshold" + type: FLOAT + } attrs { name: "x_data_format" type: STRING diff --git a/paddle/fluid/operators/compat/mul.pbtxt b/paddle/fluid/operators/compat/mul.pbtxt index b40c05ad2e0..617775eaaae 100644 --- a/paddle/fluid/operators/compat/mul.pbtxt +++ b/paddle/fluid/operators/compat/mul.pbtxt @@ -19,6 +19,18 @@ def { } } extra { + attrs { + name: "Out0_threshold" + type: FLOAT + } + attrs { + name: "bit_length" + type: INT + } + attrs { + name: "quantization_type" + type: STRING + } attrs { name: "skip_quant" type: BOOLEAN -- GitLab