pub struct BackendAttrs<'a> {
pub current_node_attributes: &'a [AttributeProto],
pub current_node_metadata: &'a [StringStringEntryProto],
}Expand description
Per-call NodeProto context surfaced to Backend::execute so
kernels overriding the whole-graph path see the original call
site’s attributes + metadata alongside the body. Per-op
methods (which receive their attributes positionally as typed
args) don’t need this struct.
Fields§
§current_node_attributes: &'a [AttributeProto]Attribute list from the call NodeProto’s attribute field.
current_node_metadata: &'a [StringStringEntryProto]metadata_props from the call NodeProto.
Auto Trait Implementations§
impl<'a> Freeze for BackendAttrs<'a>
impl<'a> RefUnwindSafe for BackendAttrs<'a>
impl<'a> Send for BackendAttrs<'a>
impl<'a> Sync for BackendAttrs<'a>
impl<'a> Unpin for BackendAttrs<'a>
impl<'a> UnsafeUnpin for BackendAttrs<'a>
impl<'a> UnwindSafe for BackendAttrs<'a>
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