From 96e58881bd8ec0594ebde6111a24a478b865e84b Mon Sep 17 00:00:00 2001 From: Dmitrii Zarukin Date: Fri, 6 Dec 2024 18:10:49 -0800 Subject: [PATCH] common: move default_attr back --- src/common/primitive_attr.hpp | 2 ++ src/common/primitive_attr_quant.hpp | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/primitive_attr.hpp b/src/common/primitive_attr.hpp index 508d8811dd3..29e01e9bbf0 100644 --- a/src/common/primitive_attr.hpp +++ b/src/common/primitive_attr.hpp @@ -36,6 +36,8 @@ namespace dnnl { namespace impl { +const primitive_attr_t &default_attr(); + struct rnn_data_qparams_t : public c_compatible { rnn_data_qparams_t() : scale_(1.f), shift_(0.f) {} bool has_default_values() const { return (scale_ == 1. && shift_ == 0.); } diff --git a/src/common/primitive_attr_quant.hpp b/src/common/primitive_attr_quant.hpp index d1d8deb8635..fbf838bd176 100644 --- a/src/common/primitive_attr_quant.hpp +++ b/src/common/primitive_attr_quant.hpp @@ -37,7 +37,6 @@ namespace dnnl { namespace impl { -const primitive_attr_t &default_attr(); struct runtime_scales_t; const runtime_scales_t &default_runtime_scale();