onnxruntime/onnxruntime
Scott McKay 2102b8f67c
Avoid duplicate symbol error between ONNX and ORT for ostream operator<< with TensorShapeProto (#12651)
* Remove ostream operator<< definitions for TensorShapeProto and TensorProto as they clash with ONNX definitions in onnx/defs/printer.h/cc.

Currently printer.h (unnecessarily) pulls in a number of other ONNX headers which causes naming clashes with parts of ORT. It is also excluded in a minimal build.

Instead convert the onnx::TensorShapeProto to onnxruntime::TensorShape so we use the existing ostream operator<< for TensorShape.

Make GetTensorShapeFromTensorProto consistent with GetTensorShapeFromTensorShapeProto so both return a TensorShape (as the name implies).
2022-08-22 17:20:52 +10:00
..
contrib_ops Qlinearsoftmax take FLOAT lookup-table (#12574) 2022-08-18 09:54:39 +08:00
core Avoid duplicate symbol error between ONNX and ORT for ostream operator<< with TensorShapeProto (#12651) 2022-08-22 17:20:52 +10:00
gsl
python QDQ debugger - Adding Error Calculator (#12632) 2022-08-18 09:30:43 -07:00
test Avoid duplicate symbol error between ONNX and ORT for ostream operator<< with TensorShapeProto (#12651) 2022-08-22 17:20:52 +10:00
tool/etw
wasm EP factory creation cleanup and enhancements. (#11798) 2022-06-16 07:01:41 +10:00
__init__.py Bump ort version number (#11948) 2022-07-22 12:55:53 -07:00
ReformatSource.ps1
ReformatSourcePython.bat Add python docstring linting in vscode settings (#11316) 2022-04-23 06:23:04 -07:00
VSCodeCoverage.runsettings