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

Method GetNode

tensorflow/core/grappler/optimizers/auto_mixed_precision.cc:623–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621}
622
623const NodeTypeId* GraphTypeTopologyView::GetNode(
624 absl::string_view node_name, const TypeAttrId& type_attr) const {
625 DCHECK(is_initialized()) << "GraphTypeTopologyView is not initialized";
626 NodeTypeKey key(node_name, type_attr);
627 const auto it = node_type_name_to_index_.find(key);
628 return it == node_type_name_to_index_.end()
629 ? nullptr
630 : &node_type_attrs_.at(it->second);
631}
632
633const NodeTypeId* GraphTypeTopologyView::GetNode(int node_idx) const {
634 DCHECK(is_initialized()) << "GraphTypeTopologyView is not initialized";

Callers 15

IsInputOnHostMethod · 0.45
ShouldProcessMethod · 0.45
GetShapeMethod · 0.45
ShouldProcessMethod · 0.45
IsNodeAfterNCHWToNHWCMethod · 0.45
GetInputPosMethod · 0.45
IsNDOperateWithMDMethod · 0.45
CustomizedProcessingMethod · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
atMethod · 0.45

Tested by 10

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
VerifyGraphsEquivalentFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36