(
graph: Graph,
inputs: Vec<Value>,
prng_seed: Option<[u8; SEED_SIZE]>,
)
| 146 | } |
| 147 | |
| 148 | pub fn evaluate_simple_evaluator( |
| 149 | graph: Graph, |
| 150 | inputs: Vec<Value>, |
| 151 | prng_seed: Option<[u8; SEED_SIZE]>, |
| 152 | ) -> Result<Value> { |
| 153 | let mut evaluator = simple_evaluator::SimpleEvaluator::new(prng_seed)?; |
| 154 | evaluator.preprocess(graph.get_context())?; |
| 155 | evaluator.evaluate_graph(graph, inputs) |
| 156 | } |
| 157 | |
| 158 | /// Evaluate a given graph on a given set of inputs with a random PRNG seed. |
| 159 | pub fn random_evaluate(graph: Graph, inputs: Vec<Value>) -> Result<Value> { |
no test coverage detected