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

Function CreateAndExecuteReorder

tensorflow/core/util/mkl_util.h:1231–1240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1229}
1230
1231inline void CreateAndExecuteReorder(const ReorderPd& reorder_desc,
1232 const memory& src_mem,
1233 const memory& dst_mem, const engine& engine,
1234 OpKernelContext* ctx = nullptr) {
1235 std::vector<primitive> net;
1236 net.push_back(dnnl::reorder(reorder_desc));
1237 std::vector<MemoryArgsMap> net_args;
1238 net_args.push_back({{DNNL_ARG_FROM, src_mem}, {DNNL_ARG_TO, dst_mem}});
1239 ExecutePrimitive(net, &net_args, engine, ctx);
1240}
1241
1242class MklReorderPrimitive;
1243

Callers 7

ComputeMethod · 0.85
ComputeMethod · 0.85
AllocateOutputTensorMethod · 0.85
GetBiasHandleMethod · 0.85
AllocateOutputTensorMethod · 0.85
AllocateOutputTensorMethod · 0.85
ComputeMethod · 0.85

Calls 2

ExecutePrimitiveFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected