MCPcopy Create free account
hub / github.com/JDAI-CV/DNNLibrary / get_initializer

Function get_initializer

quant.py:121–125  ·  view source on GitHub ↗
(m, name)

Source from the content-addressed store, hash-verified

119
120
121def 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
128def make_scales_right(m: onnx.ModelProto, quant_layers: List[str], quant_tensors: List[str]) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected