(platform: TargetPlatform)
| 10 | |
| 11 | |
| 12 | def convert_type(platform: TargetPlatform) -> str: |
| 13 | if platform == TargetPlatform.PPL_CUDA_INT8: return 'INT8' |
| 14 | if platform == TargetPlatform.SOI: return None |
| 15 | if platform == TargetPlatform.FP32: return None |
| 16 | raise TypeError(f'Unsupported platform type. ({str(platform)})') |
| 17 | |
| 18 | |
| 19 | class PPLBackendExporter(OnnxExporter): |
no outgoing calls
no test coverage detected