mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-30 23:18:20 +00:00
Fix x86 calling convention break (#814)
This commit is contained in:
parent
0741baf867
commit
1ff29bfb3d
1 changed files with 2 additions and 2 deletions
|
|
@ -29,11 +29,11 @@ ORT_API_STATUS_IMPL(OrtKernelInfoGetAttribute_int64, _In_ const OrtKernelInfo* i
|
|||
return onnxruntime::ToOrtStatus(status);
|
||||
}
|
||||
|
||||
OrtValue* OrtKernelContext_GetInput(OrtKernelContext* context, _In_ size_t index) {
|
||||
ORT_API(OrtValue*, OrtKernelContext_GetInput, OrtKernelContext* context, _In_ size_t index) {
|
||||
return reinterpret_cast<OrtValue*>(const_cast<onnxruntime::MLValue*>(reinterpret_cast<onnxruntime::OpKernelContextInternal*>(context)->GetInputMLValue(index)));
|
||||
};
|
||||
|
||||
OrtValue* OrtKernelContext_GetOutput(OrtKernelContext* context, _In_ size_t index, _In_ const int64_t* dim_values, size_t dim_count) {
|
||||
ORT_API(OrtValue*, OrtKernelContext_GetOutput, OrtKernelContext* context, _In_ size_t index, _In_ const int64_t* dim_values, size_t dim_count) {
|
||||
onnxruntime::TensorShape shape(dim_values, dim_count);
|
||||
return reinterpret_cast<OrtValue*>(reinterpret_cast<onnxruntime::OpKernelContextInternal*>(context)->OutputMLValue(index, shape));
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue