#include "mediapipe/framework/subgraph.h"
#include <fstream>
#include <iostream>
#include <sstream>
#include "mediapipe/framework/port/ret_check.h"
#include "mediapipe/framework/tool/template_expander.h"
namespace mediapipe {
Subgraph::Subgraph() { … }
Subgraph::~Subgraph() { … }
ProtoSubgraph::ProtoSubgraph(const CalculatorGraphConfig& config)
: … { … }
ProtoSubgraph::~ProtoSubgraph() { … }
absl::StatusOr<CalculatorGraphConfig> ProtoSubgraph::GetConfig(
const Subgraph::SubgraphOptions& options) { … }
TemplateSubgraph::TemplateSubgraph(const CalculatorGraphTemplate& templ)
: … { … }
TemplateSubgraph::~TemplateSubgraph() { … }
absl::StatusOr<CalculatorGraphConfig> TemplateSubgraph::GetConfig(
const Subgraph::SubgraphOptions& options) { … }
GraphRegistry GraphRegistry::global_graph_registry;
GraphRegistry::GraphRegistry()
: … { … }
GraphRegistry::GraphRegistry(
FunctionRegistry<std::unique_ptr<Subgraph>>* factories)
: … { … }
void GraphRegistry::Register(
const std::string& type_name,
std::function<std::unique_ptr<Subgraph>()> factory) { … }
void GraphRegistry::Register(const std::string& type_name,
const CalculatorGraphConfig& config) { … }
void GraphRegistry::Register(const std::string& type_name,
const CalculatorGraphTemplate& templ) { … }
bool GraphRegistry::IsRegistered(const std::string& ns,
const std::string& type_name) const { … }
absl::StatusOr<CalculatorGraphConfig> GraphRegistry::CreateByName(
absl::string_view ns, absl::string_view type_name,
SubgraphContext* context) const { … }
}