(tensor, in_layout, axes, keep_dims)
| 124 | |
| 125 | |
| 126 | def check_layout(tensor, in_layout, axes, keep_dims): |
| 127 | expected_layout = get_expected_layout(in_layout, axes, keep_dims) |
| 128 | assert ( |
| 129 | tensor.layout() == expected_layout |
| 130 | ), f"Layout mismatch. Got: `{tensor.layout()}`, expected `{expected_layout}` (axes: {axes})" |
| 131 | |
| 132 | |
| 133 | def run_dali( |
no test coverage detected