(*args)
| 61 | |
| 62 | |
| 63 | def custom_meshgrid(*args): |
| 64 | # ref: https://pytorch.org/docs/stable/generated/torch.meshgrid.html?highlight=meshgrid#torch.meshgrid |
| 65 | if pver.parse(torch.__version__) < pver.parse('1.10'): |
| 66 | return torch.meshgrid(*args) |
| 67 | else: |
| 68 | return torch.meshgrid(*args, indexing='ij') |
| 69 | |
| 70 | |
| 71 | def get_audio_features(features, att_mode, index): |
no test coverage detected