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.
| 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. |
no outgoing calls
no test coverage detected