#include "mediapipe/calculators/tensor/inference_calculator.h"
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
#include "absl/strings/string_view.h"
#include "mediapipe/calculators/tensor/inference_calculator.pb.h"
#include "mediapipe/framework/api2/node.h"
#include "mediapipe/framework/api2/packet.h"
#include "mediapipe/framework/calculator_framework.h"
#include "mediapipe/framework/port.h"
#include "mediapipe/framework/port/ret_check.h"
#include "mediapipe/framework/port/status_macros.h"
#include "mediapipe/framework/tool/subgraph_expansion.h"
#include "mediapipe/util/tflite/tflite_model_loader.h"
#include "tensorflow/lite/core/api/op_resolver.h"
#include "tensorflow/lite/kernels/register.h"
namespace mediapipe {
namespace api2 {
class InferenceCalculatorSelectorImpl
: public SubgraphImpl<InferenceCalculatorSelector,
InferenceCalculatorSelectorImpl> { … };
absl::Status InferenceCalculator::TensorContractCheck(CalculatorContract* cc) { … }
absl::StatusOr<Packet<TfLiteModelPtr>> InferenceCalculator::GetModelAsPacket(
CalculatorContext* cc) { … }
absl::StatusOr<Packet<tflite::OpResolver>>
InferenceCalculator::GetOpResolverAsPacket(CalculatorContext* cc) { … }
void InferenceCalculator::WarnFeedbackTensorsUnsupported(
CalculatorContract* cc) { … }
}
}