From 8854f3cd4be3cea11a637da918b38b99b179233e Mon Sep 17 00:00:00 2001 From: Dmitrii Zarukin Date: Wed, 15 Jan 2025 11:35:29 -0800 Subject: [PATCH] common: move default_attr back --- src/common/primitive_attr.hpp | 4 +++- src/common/primitive_attr_quant.hpp | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/primitive_attr.hpp b/src/common/primitive_attr.hpp index 508d8811dd3..4c61aef817a 100644 --- a/src/common/primitive_attr.hpp +++ b/src/common/primitive_attr.hpp @@ -1,5 +1,5 @@ /******************************************************************************* -* Copyright 2017-2024 Intel Corporation +* Copyright 2017-2025 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -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 52ec7823444..6396327cd88 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();