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

Method node

tensorflow/core/common_runtime/graph_view.h:224–231  ·  view source on GitHub ↗

Returns a mutable pointer to the `NodeItem` with the given `id` if it exists in the graph, or `nullptr` if it does not.

Source from the content-addressed store, hash-verified

222 // Returns a mutable pointer to the `NodeItem` with the given `id` if it
223 // exists in the graph, or `nullptr` if it does not.
224 NodeItem* node(int32_t id) const {
225 DCHECK_GE(id, 0);
226 DCHECK_LT(id, num_nodes_);
227 uint32 offset = node_offsets_[id];
228 return ((offset == kuint32max)
229 ? nullptr
230 : reinterpret_cast<NodeItem*>(space_ + node_offsets_[id]));
231 }
232
233 // Returns the `NodeItem` with the given `id`.
234 //

Callers 15

InitializeMethod · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
InitializeMethod · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TestStridedSliceMethod · 0.45

Calls

no outgoing calls

Tested by 13

TESTFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TestStridedSliceMethod · 0.36
TEST_FFunction · 0.36
CallFunction · 0.36
TESTFunction · 0.36