(a: Node, new_t: Type)
| 102 | } |
| 103 | |
| 104 | fn reshape_shared_array(a: Node, new_t: Type) -> Result<Node> { |
| 105 | if is_shared(&a)? { |
| 106 | let mut shares = vec![]; |
| 107 | for share_id in 0..PARTIES as u64 { |
| 108 | shares.push(a.tuple_get(share_id)?.reshape(new_t.clone())?); |
| 109 | } |
| 110 | a.get_graph().create_tuple(shares) |
| 111 | } else { |
| 112 | a.reshape(new_t) |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | fn merge_mask_data(mask: Node, data: Node) -> Result<Node> { |
| 117 | let g = mask.get_graph(); |