(actual, target)
| 48 | |
| 49 | |
| 50 | def assert_state_equal(actual, target): |
| 51 | for key in actual: |
| 52 | if isinstance(actual[key], dict): |
| 53 | assert_state_equal(actual[key], target[key]) |
| 54 | elif isinstance(actual[key], np.ndarray): |
| 55 | assert_array_equal(actual[key], target[key]) |
| 56 | else: |
| 57 | assert actual[key] == target[key] |
| 58 | |
| 59 | |
| 60 | def uint32_to_float32(u): |
no test coverage detected
searching dependent graphs…