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

Method ModifyNodeDefForImport

tensorflow/core/graph/graph_constructor.cc:826–835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824}
825
826Status GraphConstructor::ModifyNodeDefForImport(NodeDef* node_def) {
827 const OpDef* op_def;
828 TF_RETURN_IF_ERROR(g_->op_registry()->LookUpOpDef(node_def->op(), &op_def));
829 AddDefaultsToNodeDef(*op_def, node_def);
830 TF_RETURN_IF_ERROR(ValidateNodeDef(*node_def, *op_def));
831 if (versions()) {
832 TF_RETURN_IF_ERROR(CheckOpDeprecation(*op_def, versions()->producer()));
833 }
834 return Status::OK();
835}
836
837void RemoveInputs(const std::vector<int>& inputs_to_remove, NodeDef* node_def,
838 std::vector<bool>* input_already_exists) {

Callers

nothing calls this directly

Calls 6

AddDefaultsToNodeDefFunction · 0.85
ValidateNodeDefFunction · 0.85
CheckOpDeprecationFunction · 0.85
LookUpOpDefMethod · 0.80
op_registryMethod · 0.45
opMethod · 0.45

Tested by

no test coverage detected