onnxruntime/samples/c_cxx/imagenet/runnable_task.h
Changming Sun c2aa2056b5
Sample for imagenet and batch prediction (#1372)
* Sample for imagenet and batch prediction
(Will add a readme later)
2019-07-16 14:23:45 -07:00

12 lines
353 B
C++

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include <functional>
#include "sync_api.h"
class RunnableTask : public std::unary_function<void, void> {
public:
virtual void operator()(_Inout_opt_ ONNXRUNTIME_CALLBACK_INSTANCE pci) noexcept = 0;
virtual ~RunnableTask() = default;
};