6 #include "onnx/onnx_pb.h"
12 namespace onnxruntime {
43 const ONNX_NAMESPACE::TypeProto* p_arg_type);
56 const ONNX_NAMESPACE::TypeProto*
TypeAsProto()
const noexcept;
60 const ONNX_NAMESPACE::TensorShapeProto*
Shape()
const;
66 #if !defined(ORT_MINIMAL_BUILD) || defined(ORT_EXTENDED_MINIMAL_BUILD)
71 void SetShape(
const ONNX_NAMESPACE::TensorShapeProto& shape);
77 #endif // !defined(ORT_MINIMAL_BUILD) || defined(ORT_EXTENDED_MINIMAL_BUILD)
79 #if !defined(ORT_MINIMAL_BUILD)
87 int32_t input_tensor_elem_type,
88 int32_t current_tensor_elem_type,
105 #endif // !defined(ORT_MINIMAL_BUILD)
112 bool Exists() const noexcept;
119 ORT_DISALLOW_COPY_AND_ASSIGNMENT(
NodeArg);
120 void SetType(const std::
string* p_type);
121 #if !defined(ORT_MINIMAL_BUILD) || defined(ORT_EXTENDED_MINIMAL_BUILD)
122 void SetType(
const ONNX_NAMESPACE::TypeProto& type_proto);
123 #endif // !defined(ORT_MINIMAL_BUILD) || defined(ORT_EXTENDED_MINIMAL_BUILD)
const std::string * Type() const noexcept
const NodeArgInfo & ToProto() const noexcept
*get result *(waiting if necessary)*A common idiom is to fire a bunch of sub tasks at the and then *wait for them to all complete We provide a helper class
const std::string & Name() const noexcept
GLsizei const GLchar *const * string
NodeArg & operator=(NodeArg &&other)=default
common::Status OverrideTypesHelper(const ONNX_NAMESPACE::TypeProto &input_type, int32_t input_tensor_elem_type, int32_t current_tensor_elem_type, bool override_types)
bool HasTensorOrScalarShape() const
GLuint const GLchar * name
void SetShape(const ONNX_NAMESPACE::TensorShapeProto &shape)
common::Status UpdateTypeAndShape(const ONNX_NAMESPACE::TypeProto &input_type, bool strict, bool override_types, const logging::Logger &logger)
const ONNX_NAMESPACE::TensorShapeProto * Shape() const
ONNX_NAMESPACE::ValueInfoProto NodeArgInfo
const ONNX_NAMESPACE::TypeProto * TypeAsProto() const noexcept
NodeArg(const std::string &name, const ONNX_NAMESPACE::TypeProto *p_arg_type)
bool Exists() const noexcept