in source/neuropod/backends/tensorflow/saved_model/loader.cc [83:103]
static Status ValidateSavedTensors(const GraphDef &graph_def)
{
for (const auto &node : graph_def.node())
{
TF_RETURN_IF_ERROR(ValidateNode(node));
}
if (graph_def.has_library())
{
const FunctionDefLibrary &library = graph_def.library();
for (const auto &function : library.function())
{
for (const auto &node : function.node_def())
{
TF_RETURN_IF_ERROR(ValidateNode(node));
}
}
}
return Status::OK();
}