pub struct OpSchema {
pub domain: String,
pub name: String,
pub since_version: u64,
pub until_version: Option<u64>,
pub doc: String,
pub inputs: Vec<InputSpec>,
pub outputs: Vec<OutputSpec>,
pub attributes: Vec<AttributeSpec>,
pub type_constraints: Vec<TypeConstraint>,
}Expand description
A complete operator definition for one opset interval.
Fields§
§domain: StringOperator domain ("" and "ai.onnx" both mean the standard domain).
name: StringOperator type name.
since_version: u64First opset version for which this schema is valid.
until_version: Option<u64>Last valid opset version, inclusive. None means no upper bound.
doc: StringHuman-readable operator documentation.
inputs: Vec<InputSpec>Positional input definitions.
outputs: Vec<OutputSpec>Positional output definitions.
attributes: Vec<AttributeSpec>Attribute definitions.
type_constraints: Vec<TypeConstraint>Type variables and the element types they admit.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OpSchema
impl<'de> Deserialize<'de> for OpSchema
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for OpSchema
Auto Trait Implementations§
impl Freeze for OpSchema
impl RefUnwindSafe for OpSchema
impl Send for OpSchema
impl Sync for OpSchema
impl Unpin for OpSchema
impl UnsafeUnpin for OpSchema
impl UnwindSafe for OpSchema
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more