// Copyright (c) ONNX Project Contributors // // SPDX-License-Identifier: Apache-2.0 #pragma once #include #include #include "onnx/defs/schema.h" namespace ONNX_NAMESPACE::defs::optional::utils { // Optional and OptionalGetElement accept separate element and optional type sets // because historical schemas do not wrap the same element type set. std::function OptionalOpGenerator( std::vector tensor_and_sequence_types, std::vector optional_types); std::function OptionalHasElementOpGenerator(std::vector o_types); std::function OptionalGetElementOpGenerator( std::vector optional_types, std::vector tensor_and_sequence_types); } // namespace ONNX_NAMESPACE::defs::optional::utils