Wrapper runtime module. This is a thin wrapper of the underlying TVM module. you can also directly call set_input, run, and get_output of underlying module functions Parameters ---------- module : Module The internal tvm module that holds the actual coreml functions
| 51 | |
| 52 | |
| 53 | class CoreMLModule: |
| 54 | """Wrapper runtime module. |
| 55 | |
| 56 | This is a thin wrapper of the underlying TVM module. |
| 57 | you can also directly call set_input, run, and get_output |
| 58 | of underlying module functions |
| 59 | |
| 60 | Parameters |
| 61 | ---------- |
| 62 | module : Module |
| 63 | The internal tvm module that holds the actual coreml functions. |
| 64 | |
| 65 | Attributes |
| 66 | ---------- |
| 67 | module : Module |
| 68 | The internal tvm module that holds the actual coreml functions. |
| 69 | """ |
| 70 | |
| 71 | def __init__(self, module): |
| 72 | self.module = module |
| 73 | self.invoke = module["invoke"] |
| 74 | self.set_input = module["set_input"] |
| 75 | self.get_output = module["get_output"] |
| 76 | self.get_num_outputs = module["get_num_outputs"] |
no outgoing calls
no test coverage detected
searching dependent graphs…