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

Function GetTensorDataIndex

tensorflow/core/graph/mkl_graph_util.h:64–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64int inline GetTensorDataIndex(int n, int total_tensors) {
65 if (kTensorOrdering == MklTfTensorOrdering::TENSORS_INTERLEAVED) {
66 return 2 * n; // index corresponding to nth input/output tensor
67 } else {
68 CHECK_EQ(kTensorOrdering, MklTfTensorOrdering::TENSORS_CONTIGUOUS);
69 return n;
70 }
71}
72
73int inline GetTensorMetaDataIndex(int n, int total_tensors) {
74 // Get index for TensorData first and then use mapping function

Callers 9

GetTensorMetaDataIndexFunction · 0.85
mkl_util.hFile · 0.85
CopyMklTensorInToOutFunction · 0.85
ForwardTfTensorInToOutFunction · 0.85
ForwardMklTensorInToOutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected