在使用onnx生成模型遇到的问题
onnx.onnx_cpp2py_export.checker.ValidationError: Nodes in a graph must be topologically sorted, however input ‘ends’ of node:
input: “x3” input: “starts” input: “ends” output: “Y” op_type: “Slice”
is not output of any previous nodes.
这是错误是由于使用onnx.helper.make_graph的时候,缺少必需的参数initializer。