pub struct IAttentionBoundaryLayer { /* private fields */ }Expand description
IAttentionBoundaryLayer
This is a base class for Attention boundary layers.
Boundary layers are used to demarcate the boundaries of IAttention.
Typically client code does not deal directly with the boundary layers.
However, they are indirectly visible via method INetworkDefinition::getLayer(int32_t index).
Implementations§
Source§impl IAttentionBoundaryLayer
impl IAttentionBoundaryLayer
Sourcepub fn getAttention(self: &IAttentionBoundaryLayer) -> *mut IAttention
pub fn getAttention(self: &IAttentionBoundaryLayer) -> *mut IAttention
Get a pointer to the IAttention associated with this boundary layer.
Trait Implementations§
Source§impl AsLayer for IAttentionBoundaryLayer
impl AsLayer for IAttentionBoundaryLayer
Source§impl AsRef<IAttentionBoundaryLayer> for IAttentionInputLayer
impl AsRef<IAttentionBoundaryLayer> for IAttentionInputLayer
Source§fn as_ref(self: &IAttentionInputLayer) -> &IAttentionBoundaryLayer
fn as_ref(self: &IAttentionInputLayer) -> &IAttentionBoundaryLayer
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<IAttentionBoundaryLayer> for IAttentionOutputLayer
impl AsRef<IAttentionBoundaryLayer> for IAttentionOutputLayer
Source§fn as_ref(self: &IAttentionOutputLayer) -> &IAttentionBoundaryLayer
fn as_ref(self: &IAttentionOutputLayer) -> &IAttentionBoundaryLayer
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<ILayer> for IAttentionBoundaryLayer
impl AsRef<ILayer> for IAttentionBoundaryLayer
Source§fn as_ref(self: &IAttentionBoundaryLayer) -> &ILayer
fn as_ref(self: &IAttentionBoundaryLayer) -> &ILayer
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl ExternType for IAttentionBoundaryLayer
impl ExternType for IAttentionBoundaryLayer
Source§impl MakeCppStorage for IAttentionBoundaryLayer
impl MakeCppStorage for IAttentionBoundaryLayer
Source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut IAttentionBoundaryLayer
unsafe fn allocate_uninitialized_cpp_storage() -> *mut IAttentionBoundaryLayer
Allocates heap space for this type in C++ and return a pointer
to that space, but do not initialize that space (i.e. do not
yet call a constructor). Read more
Source§unsafe fn free_uninitialized_cpp_storage(arg0: *mut IAttentionBoundaryLayer)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut IAttentionBoundaryLayer)
Frees a C++ allocation which has not yet
had a constructor called. Read more
Auto Trait Implementations§
impl !Freeze for IAttentionBoundaryLayer
impl !RefUnwindSafe for IAttentionBoundaryLayer
impl !Send for IAttentionBoundaryLayer
impl !Sync for IAttentionBoundaryLayer
impl Unpin for IAttentionBoundaryLayer
impl UnsafeUnpin for IAttentionBoundaryLayer
impl UnwindSafe for IAttentionBoundaryLayer
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