MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / IsMklOp

Function IsMklOp

tensorflow/core/graph/mkl_graph_util.h:248–250  ·  view source on GitHub ↗

Check if the operator with 'op_name' and type 'T' is an OneDNN operator that will either understand input tensors in OneDNN layout or will go through name rewrite that some operators go through.

Source from the content-addressed store, hash-verified

246// will either understand input tensors in OneDNN layout or will go through name
247// rewrite that some operators go through.
248static inline bool IsMklOp(const string& op_name, DataType T) {
249 return IsMklLayoutDependentOp(op_name, T) || IsMklNameChangeOp(op_name, T);
250}
251
252static inline bool IsMklOp(const Node* n) {
253 DataType T;

Callers 3

IsMklElementWiseOpFunction · 0.85
CheckForNodeRewriteMethod · 0.85

Calls 4

IsMklLayoutDependentOpFunction · 0.85
IsMklNameChangeOpFunction · 0.85
GetNodeAttrFunction · 0.50
okMethod · 0.45

Tested by

no test coverage detected