Skip to content

Commit

Permalink
onednn come back
Browse files Browse the repository at this point in the history
  • Loading branch information
allnes committed May 13, 2024
1 parent d28b7d1 commit db355f7
Showing 1 changed file with 28 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,34 +345,34 @@ const std::vector<ExecutorImplementation<FCAttrs>>& getImplementations() {
const ExecutorContext::CPtr context) {
return std::make_shared<ACLFullyConnectedExecutor>(attrs, postOps, memory, context);
})
// OV_CPU_INSTANCE_DNNL(
// "fullyconnected_dnnl",
// ExecutorType::Dnnl,
// OperationType::FullyConnected,
// ShapeTolerance::Dependant,
// // supports
// [](const FCConfig& config) -> bool {
// return true;
// },
// // requiresFallback
// [](const FCConfig& config) -> ov::optional<executor::Config<FCAttrs>> {
// return requiresFallbackCommon(config,
// dnnlFCTypeMapping,
// dnnlFCLayoutConfig,
// dnnlConvolutionMappingNotation);
// },
// // acceptsShapes
// [](const MemoryArgs& memory) -> bool {
// return true;
// },
// // create
// [](const FCAttrs& attrs, const PostOps& postOps, const MemoryArgs& memory, ExecutorContext::CPtr context) {
// return std::make_shared<DnnlFCExecutor<DnnlFCPrimitive, FCAttrs, DnnlShapeAgnosticData>>(attrs,
// postOps,
// memory,
// context,
// false);
// })
OV_CPU_INSTANCE_DNNL(
"fullyconnected_dnnl",
ExecutorType::Dnnl,
OperationType::FullyConnected,
ShapeTolerance::Dependant,
// supports
[](const FCConfig& config) -> bool {
return true;
},
// requiresFallback
[](const FCConfig& config) -> ov::optional<executor::Config<FCAttrs>> {
return requiresFallbackCommon(config,
dnnlFCTypeMapping,
dnnlFCLayoutConfig,
dnnlConvolutionMappingNotation);
},
// acceptsShapes
[](const MemoryArgs& memory) -> bool {
return true;
},
// create
[](const FCAttrs& attrs, const PostOps& postOps, const MemoryArgs& memory, ExecutorContext::CPtr context) {
return std::make_shared<DnnlFCExecutor<DnnlFCPrimitive, FCAttrs, DnnlShapeAgnosticData>>(attrs,
postOps,
memory,
context,
false);
})
};

return fullyconnectedImplementations;
Expand Down

0 comments on commit db355f7

Please sign in to comment.