Add iterator for PossibleOperations data structure

This commit is contained in:
2023-11-20 16:56:42 +01:00
parent 992450374c
commit c73053f991
4 changed files with 51 additions and 0 deletions

View File

@@ -135,6 +135,12 @@ import MetagraphOptimization.partners
@test length(operations) == (nodeFusions = 10, nodeReductions = 0, nodeSplits = 0)
@test length(graph.dirtyNodes) == 0
i = 0
for op in operations
i += 1
end
@test i == 10
@test operations == get_operations(graph)
nf = first(operations.nodeFusions)