Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/ggml/blob/master/src/ggml-openvino/openvino/pass/mark_dequantization_subgraph.h # ggml [Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `ggml / src / ggml-openvino / openvino / pass / mark_dequantization_subgraph.h` 44 lines ยท 1696 bytes Raw Blame History 1 // Copyright (C) 2018-2026 Intel Corporation 2 // SPDX-License-Identifier: Apache-2.0 3 // 4 // Local mirror of OpenVINO's ov::pass::MarkDequantization pass declaration. 5 // 6 // The pass body is provided by the linked libopenvino.so; only the declaration is needed here so 7 // we can register it directly in our own TranslateSession::apply_transformations (same approach as 8 // MarkCompressedFloatConstants's local mirror in mark_decompression_convert_constant_folding.h). This 9 // lets us mark our GatherMatmul dequantization chain with disable_constant_folding regardless of the 10 // CPU/GPU plugin's own is_decompression_multiply() consumer allowlist. 11 // The class layout must stay in sync with 12 // openvino/src/common/transformations/include/transformations/low_precision/mark_dequantization_subgraph.hpp 13 14 #pragma once 15 16 #include "openvino/core/type/element_type.hpp" 17 #include "openvino/core/visibility.hpp" 18 #include "openvino/pass/matcher_pass.hpp" 19 20 #ifdef OPENVINO_STATIC_LIBRARY 21 # define TRANSFORMATIONS_API 22 #else 23 # ifdef IMPLEMENT_OPENVINO_API 24 # define TRANSFORMATIONS_API OPENVINO_CORE_EXPORTS 25 # else 26 # define TRANSFORMATIONS_API OPENVINO_CORE_IMPORTS 27 # endif // IMPLEMENT_OPENVINO_API 28 #endif // OPENVINO_STATIC_LIBRARY 29 30 namespace ov { 31 namespace pass { 32 33 class TRANSFORMATIONS_API MarkDequantization; 34 35 } // namespace pass 36 } // namespace ov 37 38 class ov::pass::MarkDequantization : public MatcherPass { 39 public: 40 OPENVINO_MATCHER_PASS_RTTI("MarkDequantization") 41 explicit MarkDequantization(const element::TypeVector & precisions, 42 bool fold_subtract_const = false, 43 bool fold_multiply_const = true); 44 };