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

Method IsReorderNeeded

tensorflow/core/util/mkl_util.h:1442–1445  ·  view source on GitHub ↗

Predicate that checks if we need to reorder user's memory into memory pointed by op_md. @input: op_md - memory descriptor of the given input of an operation. @return: true in case reorder of input is needed; false, otherwise.

Source from the content-addressed store, hash-verified

1440 /// @input: op_md - memory descriptor of the given input of an operation.
1441 /// @return: true in case reorder of input is needed; false, otherwise.
1442 inline bool IsReorderNeeded(const memory::desc& op_pd) const {
1443 DCHECK(user_memory_);
1444 return op_pd != user_memory_->get_desc();
1445 }
1446
1447 /// Function to create a reorder from memory pointed by from to memory pointed
1448 /// by to. Returns created primitive.

Callers 2

ConvertMklToTfMethod · 0.80
ConvertMklToTFFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected