mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Remove 'Ort' prefix from OrtAddFreeDimensionOverride for consistency. (#2099)
This commit is contained in:
parent
e8e33977da
commit
50faab308b
4 changed files with 5 additions and 5 deletions
|
|
@ -527,8 +527,8 @@ struct OrtApi {
|
|||
|
||||
// Override symbolic dimensions with actual values if known at session initialization time to enable
|
||||
// optimizations that can take advantage of fixed values (such as memory planning, etc)
|
||||
OrtStatus*(ORT_API_CALL* OrtAddFreeDimensionOverride)(_Inout_ OrtSessionOptions* options,
|
||||
_In_ const char* symbolic_dim, _In_ int64_t dim_override)NO_EXCEPTION;
|
||||
OrtStatus*(ORT_API_CALL* AddFreeDimensionOverride)(_Inout_ OrtSessionOptions* options,
|
||||
_In_ const char* symbolic_dim, _In_ int64_t dim_override)NO_EXCEPTION;
|
||||
|
||||
/**
|
||||
* APIs to support non-tensor types - map and sequence.
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ ORT_API_STATUS_IMPL(OrtApis::SetInterOpNumThreads, _In_ OrtSessionOptions* optio
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
ORT_API_STATUS_IMPL(OrtApis::OrtAddFreeDimensionOverride, _Inout_ OrtSessionOptions* options,
|
||||
ORT_API_STATUS_IMPL(OrtApis::AddFreeDimensionOverride, _Inout_ OrtSessionOptions* options,
|
||||
_In_ const char* symbolic_dim, _In_ int64_t dim_override) {
|
||||
options->value.free_dimension_overrides.push_back(onnxruntime::FreeDimensionOverride{symbolic_dim, dim_override});
|
||||
return nullptr;
|
||||
|
|
|
|||
|
|
@ -1325,7 +1325,7 @@ static constexpr OrtApi ort_api_1 = {
|
|||
&OrtApis::AllocatorFree,
|
||||
&OrtApis::AllocatorGetInfo,
|
||||
&OrtApis::GetAllocatorWithDefaultOptions,
|
||||
&OrtApis::OrtAddFreeDimensionOverride,
|
||||
&OrtApis::AddFreeDimensionOverride,
|
||||
&OrtApis::GetValue,
|
||||
&OrtApis::GetValueCount,
|
||||
&OrtApis::CreateValue,
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ ORT_API_STATUS_IMPL(GetTensorShapeElementCount, _In_ const OrtTensorTypeAndShape
|
|||
ORT_API_STATUS_IMPL(GetTensorTypeAndShape, _In_ const OrtValue* value, _Outptr_ OrtTensorTypeAndShapeInfo** out);
|
||||
ORT_API_STATUS_IMPL(GetTypeInfo, _In_ const OrtValue* value, _Outptr_ OrtTypeInfo** out);
|
||||
ORT_API_STATUS_IMPL(GetValueType, _In_ const OrtValue* value, _Out_ enum ONNXType* out);
|
||||
ORT_API_STATUS_IMPL(OrtAddFreeDimensionOverride, _Inout_ OrtSessionOptions* options, _In_ const char* symbolic_dim, _In_ int64_t dim_override);
|
||||
ORT_API_STATUS_IMPL(AddFreeDimensionOverride, _Inout_ OrtSessionOptions* options, _In_ const char* symbolic_dim, _In_ int64_t dim_override);
|
||||
|
||||
ORT_API_STATUS_IMPL(CreateMemoryInfo, _In_ const char* name1, enum OrtAllocatorType type, int id1, enum OrtMemType mem_type1, _Outptr_ OrtMemoryInfo** out);
|
||||
ORT_API_STATUS_IMPL(CreateCpuMemoryInfo, enum OrtAllocatorType type, enum OrtMemType mem_type1, _Outptr_ OrtMemoryInfo** out)
|
||||
|
|
|
|||
Loading…
Reference in a new issue