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

Method RemoveNode

tensorflow/core/framework/model.cc:767–778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

765}
766
767void Model::RemoveNode(const string& name) {
768 mutex_lock l(mu_);
769 auto node = gtl::FindOrNull(lookup_table_, name);
770 if (node) {
771 if ((*node)->output()) {
772 (*node)->output()->remove_input(*node);
773 }
774 VLOG(3) << "Removing " << (*node)->long_name();
775 remove_node_hook_(*node);
776 }
777 lookup_table_.erase(name);
778}
779
780std::map<string, std::shared_ptr<Parameter>> Model::CollectTunableParameters(
781 std::shared_ptr<Node> node) {

Callers 1

MakeIteratorMethod · 0.45

Calls 4

FindOrNullFunction · 0.85
long_nameMethod · 0.80
outputMethod · 0.65
eraseMethod · 0.45

Tested by

no test coverage detected