chromium/third_party/mediapipe/src/mediapipe/framework/subgraph.cc

// Copyright 2019 The MediaPipe Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#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) {}

// TODO: Remove this convenience function.
void GraphRegistry::Register(const std::string& type_name,
                             const CalculatorGraphConfig& config) {}

// TODO: Remove this convenience function.
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 {}

}  // namespace mediapipe