WIP regenerate possible operations
This commit is contained in:
@ -12,7 +12,7 @@ function test_known_graphs()
|
||||
@test props.compute_effort == 185
|
||||
@test props.data == 102
|
||||
|
||||
@test length(generate_options(g_ABAB).nodeFusions) == 10
|
||||
@test length(get_operations(g_ABAB).nodeFusions) == 10
|
||||
|
||||
test_node_fusion(g_ABAB)
|
||||
test_random_walk(g_ABAB, 100)
|
||||
@ -32,7 +32,7 @@ end
|
||||
function test_node_fusion(g::DAG)
|
||||
props = graph_properties(g)
|
||||
|
||||
options = generate_options(g)
|
||||
options = get_operations(g)
|
||||
|
||||
nodes_number = length(g.nodes)
|
||||
data = props.data
|
||||
@ -53,7 +53,7 @@ function test_node_fusion(g::DAG)
|
||||
data = props.data
|
||||
compute_effort = props.compute_effort
|
||||
|
||||
options = generate_options(g)
|
||||
options = get_operations(g)
|
||||
end
|
||||
end
|
||||
|
||||
@ -70,7 +70,7 @@ function test_random_walk(g::DAG, n::Int64)
|
||||
# choose push or pop
|
||||
if rand(Bool)
|
||||
# push
|
||||
opt = generate_options(g)
|
||||
opt = get_operations(g)
|
||||
|
||||
# choose one of fuse/split/reduce
|
||||
option = rand(1:3)
|
||||
|
Reference in New Issue
Block a user