Skip to content

Commit

Permalink
replace ov::snippets::pass::FakeQuantizeDecomposition with ov::pass::…
Browse files Browse the repository at this point in the history
…FakeQuantizeDecomposition
  • Loading branch information
alvoron committed Feb 26, 2025
1 parent 9d18773 commit b82c950
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/plugins/intel_cpu/src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ struct Config {
bool enableNodeSplit = false;
bool enableHyperThreading = true;
bool changedHyperThreading = false;
#if defined(OPENVINO_ARCH_X86) || defined(OPENVINO_ARCH_X86_64) || defined(OPENVINO_ARCH_ARM) || defined(OPENVINO_ARCH_ARM64)
#if defined(OPENVINO_ARCH_X86) || defined(OPENVINO_ARCH_X86_64) || defined(OPENVINO_ARCH_ARM64)
LPTransformsMode lpTransformsMode = LPTransformsMode::On;
#else
// Currently INT8 mode is not optimized on ARM / RISCV or other non-x86 platforms, fallback to FP32 mode.
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/intel_cpu/src/graph_optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ void GraphOptimizer::FuseMultiplyAndAdd(Graph& graph) {

void GraphOptimizer::MergeEltwiseAndConvert(Graph& graph) {
// The pass is required on arm platforms only
#if !defined(OPENVINO_ARCH_ARM) && !defined(OPENVINO_ARCH_ARM64)
#if !defined(OPENVINO_ARCH_ARM64)
return;
#endif
auto& graphNodes = graph.GetNodes();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1305,9 +1305,8 @@ void Transformations::MainSnippets(void) {
void Transformations::PostSnippets(void) {
ov::pass::Manager postSnippetsManager("CPU:PostSnippets");
postSnippetsManager.set_per_pass_validation(false);
CPU_REGISTER_PASS_ARM(postSnippetsManager, ov::snippets::pass::FakeQuantizeDecomposition);
CPU_REGISTER_PASS_COMMON(postSnippetsManager, ov::pass::FakeQuantizeDecomposition);
CPU_SET_CALLBACK_COMMON(
CPU_SET_CALLBACK_X64(
postSnippetsManager,
[](const_node_ptr& node) -> bool {
std::string errMsg;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class InitGraphStatefulDiffPrimitiveModel : public InitGraphStatefulModelBase {
}

void check_init_graph_node() override {
#if defined(OPENVINO_ARCH_ARM) || defined(OPENVINO_ARCH_ARM64)
#if defined(OPENVINO_ARCH_ARM64)
// Convert node is fused into Eltwise on arm platforms
if (directPair) {
CheckNumberOfNodesWithType(compiledModel, "Convert", 0);
Expand Down

0 comments on commit b82c950

Please sign in to comment.