MCPcopy Index your code
hub / github.com/OpenPPL/ppq / convert_type

Function convert_type

ppq/parser/ppl.py:12–16  ·  view source on GitHub ↗
(platform: TargetPlatform)

Source from the content-addressed store, hash-verified

10
11
12def 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
19class PPLBackendExporter(OnnxExporter):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected