microsoft/onnxruntime-extensions
Publicmirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable
operators/text/string_concat.hpp
20lines · 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 | #include "string_utils.h" |
| 8 | |
| 9 | struct KernelStringConcat : BaseKernel { |
| 10 | KernelStringConcat(const OrtApi& api); |
| 11 | void Compute(OrtKernelContext* context); |
| 12 | }; |
| 13 | |
| 14 | struct CustomOpStringConcat : OrtW::CustomOpBase<CustomOpStringConcat, KernelStringConcat> { |
| 15 | const char* GetName() const; |
| 16 | size_t GetInputTypeCount() const; |
| 17 | ONNXTensorElementDataType GetInputType(size_t index) const; |
| 18 | size_t GetOutputTypeCount() const; |
| 19 | ONNXTensorElementDataType GetOutputType(size_t index) const; |
| 20 | }; |
| 21 | |