Commit f543849e authored by Sayantan Sarkar's avatar Sayantan Sarkar Committed by Scott Cyphers

Add constant folding for Power for CPU (#3849)

parent 3b558069
......@@ -495,6 +495,12 @@ namespace ngraph
BUILD_BINARY_ELEMWISE_CF_FUNCTOR(runtime::cpu::kernel::multiply);
}
template <>
NodeExecutorTy Builder::BUILDER_CF_DECL(ngraph::op::Power)
{
BUILD_BINARY_ELEMWISE_CF_FUNCTOR(runtime::cpu::kernel::cwise_pow);
}
template <>
NodeExecutorTy Builder::BUILDER_CF_DECL(ngraph::op::Divide)
{
......@@ -727,6 +733,7 @@ namespace ngraph
REGISTER_CF_BUILDER(Xor);
REGISTER_CF_BUILDER(Sign);
REGISTER_CF_BUILDER(Not);
REGISTER_CF_BUILDER(Power);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment