blace.ai
|
#include <graph_evaluator.h>
Public Member Functions | |
GraphEvaluator (blace::ops::OpP node) | |
GraphEvaluator (std::shared_ptr< NodeOp > node) | |
void | to_dot_file (const std::filesystem::path &filename) |
std::string | to_dot_string () |
std::optional< std::string > | evaluateToString () |
std::optional< std::vector< int64_t > > | evaluateToIntList () |
std::optional< RawMemoryObject > | evaluateToRawMemory (std::shared_ptr< ml_core::ProgressCallback > progress_callback=nullptr) |
A class to evaluate constructed graphs.
blace::computation_graph::GraphEvaluator::GraphEvaluator | ( | blace::ops::OpP | node | ) |
Constructs a graph evaluator instance from a node.
node | The final node which shall be evaluated. |
blace::computation_graph::GraphEvaluator::GraphEvaluator | ( | std::shared_ptr< NodeOp > | node | ) |
Constructs a graph evaluator instance from a internal node.
node | The final node which shall be evaluated. |
std::optional< std::vector< int64_t > > blace::computation_graph::GraphEvaluator::evaluateToIntList | ( | ) |
Evaluates graph to an integer list.
std::optional< RawMemoryObject > blace::computation_graph::GraphEvaluator::evaluateToRawMemory | ( | std::shared_ptr< ml_core::ProgressCallback > | progress_callback = nullptr | ) |
Evaluates graph to raw memory.
std::optional< std::string > blace::computation_graph::GraphEvaluator::evaluateToString | ( | ) |
Evaluates graph to string.
void blace::computation_graph::GraphEvaluator::to_dot_file | ( | const std::filesystem::path & | filename | ) |
Writes a .dot file with the graph structure.
filename |
std::string blace::computation_graph::GraphEvaluator::to_dot_string | ( | ) |
Returns a .dot string with the graph structure.
filename |