microsoft/onnxruntime-extensions
Publicmirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable
operators/cv2/super_resolution_preprocess.hpp
19lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "ocos.h" |
| 7 | |
| 8 | struct KernelSuperResolutionPreProcess : BaseKernel { |
| 9 | KernelSuperResolutionPreProcess(const OrtApi& api); |
| 10 | void Compute(OrtKernelContext* context); |
| 11 | }; |
| 12 | |
| 13 | struct CustomOpSuperResolutionPreProcess : OrtW::CustomOpBase<CustomOpSuperResolutionPreProcess, KernelSuperResolutionPreProcess> { |
| 14 | const char* GetName() const; |
| 15 | size_t GetInputTypeCount() const; |
| 16 | ONNXTensorElementDataType GetInputType(size_t index) const; |
| 17 | size_t GetOutputTypeCount() const; |
| 18 | ONNXTensorElementDataType GetOutputType(size_t index) const; |
| 19 | }; |
| 20 | |