pub struct ModelFunction {
pub domain: String,
pub name: String,
pub inputs: Vec<String>,
pub outputs: Vec<String>,
pub attributes: Vec<String>,
pub has_attribute_refs: bool,
pub body: Graph,
}Expand description
A model-local ONNX function body converted into IR for late legalization.
Fields§
§domain: String§name: String§inputs: Vec<String>§outputs: Vec<String>§attributes: Vec<String>Formal attribute names declared by the FunctionProto (attribute plus
names from attribute_proto). The IR does not preserve ref_attr_name
bindings, so heterogeneous assignment-time IR inlining must treat these
as requiring proto-level attribute binding.
has_attribute_refs: boolWhether any FunctionProto body attribute (including nested subgraphs) used
ref_attr_name. This is captured before IR conversion drops that field.
body: GraphTrait Implementations§
Source§impl Clone for ModelFunction
impl Clone for ModelFunction
Source§fn clone(&self) -> ModelFunction
fn clone(&self) -> ModelFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModelFunction
impl RefUnwindSafe for ModelFunction
impl Send for ModelFunction
impl Sync for ModelFunction
impl Unpin for ModelFunction
impl UnsafeUnpin for ModelFunction
impl UnwindSafe for ModelFunction
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