mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-20 19:12:24 +00:00
Refactor onnx_test_runner for better object ownership, code readability and maintainability.
16 lines
289 B
C++
16 lines
289 B
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#include "callback.h"
|
|
|
|
namespace onnxruntime {
|
|
namespace test {
|
|
|
|
void OrtCallback::Run() noexcept {
|
|
if (f != nullptr) {
|
|
f(param);
|
|
}
|
|
}
|
|
|
|
} // namespace test
|
|
} // namespace onnxruntime
|