mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 20:25:34 -05:00
dev(opgraph): add facilities to OPGraph
- allow to construct graph from an existing networkx MultiDiGraph - add a function to remove nodes unreachable from the outputs of the graph - return the evaluated output when calling the OPGraph
This commit is contained in:
@@ -139,6 +139,6 @@ def trace_numpy_function(
|
||||
if isinstance(output_tracers, NPTracer):
|
||||
output_tracers = (output_tracers,)
|
||||
|
||||
op_graph = OPGraph(output_tracers)
|
||||
op_graph = OPGraph.from_output_tracers(output_tracers)
|
||||
|
||||
return op_graph
|
||||
|
||||
Reference in New Issue
Block a user