(old_format, new_format)
| 100 | # Get the permutation required to transpose old_format to new_format |
| 101 | @staticmethod |
| 102 | def permutation(old_format, new_format): |
| 103 | return FormatManager.DATA_PERMUTATIONS[(old_format, new_format)] |
| 104 | |
| 105 | @staticmethod |
| 106 | def convert(shape, new_format): |