Skip to content

Abbreviate ONNXRuntime as Ort in all of our public APIs - #175

Merged
Ryan Hill (RyanUnderhill) merged 15 commits into
masterfrom
ryanunderhill/c_api_3
Dec 14, 2018
Merged

Abbreviate ONNXRuntime as Ort in all of our public APIs#175
Ryan Hill (RyanUnderhill) merged 15 commits into
masterfrom
ryanunderhill/c_api_3

Conversation

@RyanUnderhill

Copy link
Copy Markdown
Contributor

The current prefix was too long and making the API functions hard to read.

This changes to the simple prefix 'Ort' for 'Onnx RunTime' and uses it for all macros and function names in the public headers. This doesn't replace all occurrences of OnnxRuntime\ONNXRuntime\ONNXRUNTIME_ in the code. That can be done next if this change is approved.

@RyanUnderhill
Ryan Hill (RyanUnderhill) requested a review from a team as a code owner December 14, 2018 01:52
@snnn

Copy link
Copy Markdown
Contributor

'Ort'
'Onnx'
'Orz'

:-)

virtual MLDataType GetElementType() const {
// should never reach here.
ONNXRUNTIME_NOT_IMPLEMENTED(__FUNCTION__, " is not implemented");
ORT_NOT_IMPLEMENTED(__FUNCTION__, " is not implemented");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, having some macros that have ONNXRUNTIME_ and some ORT_ doesn't look very clean.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll make them all ORT_

@pranavsharma
Pranav Sharma (pranavsharma) requested a review from a team December 14, 2018 09:38

@yuanbyu Yuan Yu (yuanbyu) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@RyanUnderhill
Ryan Hill (RyanUnderhill) merged commit 11b369a into master Dec 14, 2018
@RyanUnderhill
Ryan Hill (RyanUnderhill) deleted the ryanunderhill/c_api_3 branch December 14, 2018 22:56
Tang, Cheng (souptc) pushed a commit that referenced this pull request Dec 17, 2018
Will enable more node tests(notable, those converted from pytorch) in the future.

Related work items: #164, #175
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants