microsoft/onnxruntime-extensions

Public

mirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0647ce6d14b95209220714685d83659bc0d53aad

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

operators/math/segment_extraction.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
9struct KernelSegmentExtraction : BaseKernel {
10 KernelSegmentExtraction(const OrtApi& api);
11 void Compute(OrtKernelContext* context);
12};
13
14struct CustomOpSegmentExtraction : Ort::CustomOpBase<CustomOpSegmentExtraction, KernelSegmentExtraction> {
15 size_t GetInputTypeCount() const;
16 size_t GetOutputTypeCount() const;
17 ONNXTensorElementDataType GetOutputType(size_t index) const;
18 const char* GetName() const;
19 ONNXTensorElementDataType GetInputType(size_t index) const;
20};
21