onnxruntime/onnxruntime/core/framework/callback.h
Pranav Sharma a443b013dd
Remove unneeded C APIs + some refactoring. (#1555)
* Mention OrtCreateSessionFromArray in C API doc

* c api changes after review (1)

* updates...

* fixes

* Reorder include
2019-08-07 11:05:29 -07:00

15 lines
No EOL
323 B
C++

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
namespace onnxruntime {
struct OrtCallback {
void (*f)(void* param) noexcept;
void* param;
};
/**
* f will be freed in this call
*/
void OrtRunCallback(OrtCallback* f) noexcept;
} // namespace onnxruntime