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

Function GetFrameAndIter

tensorflow/core/kernels/slice_sendrecv_utils.cc:39–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39FrameAndIter GetFrameAndIter(OpKernelContext* ctx, bool hostmem_sendrecv) {
40 if (hostmem_sendrecv && ctx->call_frame() != nullptr) {
41 // Host memory send/recv pairs are added by
42 // common_runtime/memory_types.cc. When the pair of nodes are
43 // added inside a function, we need to use the function call frame
44 // to formulate the unique rendezvous key.
45 return FrameAndIter(reinterpret_cast<uint64>(ctx->call_frame()), 0);
46 } else {
47 return ctx->frame_iter();
48 }
49}
50
51}; // End of namespace slice_sendrecv
52

Callers

nothing calls this directly

Calls 3

FrameAndIterClass · 0.85
frame_iterMethod · 0.80
call_frameMethod · 0.45

Tested by

no test coverage detected