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

Class FrameAndIter

tensorflow/core/framework/control_flow.h:32–46  ·  view source on GitHub ↗

For the purpose of control flow, every tensor produced by TensorFlow is conceptually tagged by a 'FrameAndIter'. FrameAndIter consists of a 'frame_id' and an 'iter_id'. The tensor value it represents is produced in the frame with frame_id at the iteration of iter_id.

Source from the content-addressed store, hash-verified

30// 'frame_id' and an 'iter_id'. The tensor value it represents is produced
31// in the frame with frame_id at the iteration of iter_id.
32struct FrameAndIter {
33 uint64 frame_id = kIllegalFrameId;
34 int64 iter_id = kIllegalIterId;
35
36 FrameAndIter() {}
37
38 FrameAndIter(uint64 frame, int64 iter) {
39 frame_id = frame;
40 iter_id = iter;
41 }
42
43 bool operator==(const FrameAndIter& other) const {
44 return (frame_id == other.frame_id && iter_id == other.iter_id);
45 }
46};
47
48struct FrameAndIterHash {
49 size_t operator()(const FrameAndIter& key) const {

Callers 15

mainFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
MakeKeyFunction · 0.85
EvaluateNodeFunction · 0.85
RunMethod · 0.85
CreateExecutorsMethod · 0.85
MakeStringKeyFunction · 0.85
GetRendezvousKeyFunction · 0.85
SendTensorsMethod · 0.85
ReceiveTensorsAsyncMethod · 0.85
KeyFunction · 0.85

Calls

no outgoing calls

Tested by 15

mainFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
MakeKeyFunction · 0.68
MakeStringKeyFunction · 0.68
GetRendezvousKeyFunction · 0.68
KeyFunction · 0.68
PrepOpKernelMethod · 0.68
BM_SegmentReductionFunction · 0.68
TESTFunction · 0.68