(m, name)
| 119 | |
| 120 | |
| 121 | def get_initializer(m, name): |
| 122 | for t in m.graph.initializer: |
| 123 | if t.name == name: |
| 124 | from onnx import numpy_helper |
| 125 | return numpy_helper.to_array(t) |
| 126 | |
| 127 | |
| 128 | def make_scales_right(m: onnx.ModelProto, quant_layers: List[str], quant_tensors: List[str]) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected