3#include "library_defines.h"
4#include "ml_core/callbacks.h"
6#ifdef BLACE_AI_TORCH_INTERFACE
7#include <ATen/core/TensorBody.h>
11#ifdef BLACE_AI_OPENCV_INTERFACE
12#include <opencv2/core/mat.hpp>
25namespace computation_graph {
29struct GraphEvaluatorImpl;
64#ifdef BLACE_AI_OPENCV_INTERFACE
70 std::optional<cv::Mat> evaluateToCVMat();
93 std::shared_ptr<ml_core::ProgressCallback> progress_callback =
nullptr);
95#ifdef BLACE_AI_TORCH_INTERFACE
101 std::optional<at::Tensor> evaluateToTorchTensor(
102 std::shared_ptr<ml_core::ProgressCallback> progress_callback =
nullptr);
108 std::unique_ptr<GraphEvaluatorImpl> _impl;
Definition: graph_evaluator.h:34
std::optional< std::vector< int64_t > > evaluateToIntList()
GraphEvaluator(blace::ops::OpP node)
std::string to_dot_string()
std::optional< RawMemoryObject > evaluateToRawMemory(std::shared_ptr< ml_core::ProgressCallback > progress_callback=nullptr)
void to_dot_file(const std::filesystem::path &filename)
std::optional< std::string > evaluateToString()
GraphEvaluator(std::shared_ptr< NodeOp > node)
Contains implementation for a class used to I/O custom memory.