MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / model_output_names

Function model_output_names

tools/test_runner.py:154–161  ·  view source on GitHub ↗
(model_file_name)

Source from the content-addressed store, hash-verified

152
153
154def model_output_names(model_file_name):
155 with open(model_file_name, 'rb') as pfile:
156 data_str = pfile.read()
157 model_proto = onnx.ModelProto()
158 model_proto.ParseFromString(data_str)
159 output_names = [out.name for out in model_proto.graph.output]
160
161 return output_names
162
163
164def get_input_shapes(sample_case, param_names):

Callers 1

mainFunction · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected