(context: Context, k: u32, st: ScalarType)
| 26 | } |
| 27 | |
| 28 | fn gen_a2b_graph(context: Context, k: u32, st: ScalarType) -> Result<Graph> { |
| 29 | let graph = context.create_graph()?; |
| 30 | let n = 2u64.pow(k); |
| 31 | let i = graph.input(array_type(vec![n], st))?; |
| 32 | graph.set_output_node(i.a2b()?)?; |
| 33 | graph.finalize()?; |
| 34 | Ok(graph) |
| 35 | } |
| 36 | |
| 37 | fn gen_b2a_graph(context: Context, k: u32, st: ScalarType) -> Result<Graph> { |
| 38 | let graph = context.create_graph()?; |
no test coverage detected