pub struct IUnaryLayer { /* private fields */ }Expand description
IUnaryLayer
Layer that represents an unary operation.
Do not inherit from this class, as doing so will break forward-compatibility of the API and ABI.
Implementations§
Source§impl IUnaryLayer
impl IUnaryLayer
Sourcepub fn setOperation(self: Pin<&mut IUnaryLayer>, op: UnaryOperation)
pub fn setOperation(self: Pin<&mut IUnaryLayer>, op: UnaryOperation)
Set the unary operation for the layer.
When running this layer on DLA, only UnaryOperation::kABS is supported.
See [getOperation()], UnaryOperation
Sourcepub fn getOperation(self: &IUnaryLayer) -> UnaryOperation
pub fn getOperation(self: &IUnaryLayer) -> UnaryOperation
Get the unary operation for the layer.
See [setOperation()], UnaryOperation
Trait Implementations§
Source§impl AsLayer for IUnaryLayer
impl AsLayer for IUnaryLayer
Source§impl AsLayerTyped for IUnaryLayer
impl AsLayerTyped for IUnaryLayer
Source§impl AsRef<ILayer> for IUnaryLayer
impl AsRef<ILayer> for IUnaryLayer
Source§fn as_ref(self: &IUnaryLayer) -> &ILayer
fn as_ref(self: &IUnaryLayer) -> &ILayer
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl ExternType for IUnaryLayer
impl ExternType for IUnaryLayer
Source§impl MakeCppStorage for IUnaryLayer
impl MakeCppStorage for IUnaryLayer
Source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut IUnaryLayer
unsafe fn allocate_uninitialized_cpp_storage() -> *mut IUnaryLayer
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 IUnaryLayer)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut IUnaryLayer)
Frees a C++ allocation which has not yet
had a constructor called. Read more
Auto Trait Implementations§
impl !Freeze for IUnaryLayer
impl !RefUnwindSafe for IUnaryLayer
impl !Send for IUnaryLayer
impl !Sync for IUnaryLayer
impl Unpin for IUnaryLayer
impl UnsafeUnpin for IUnaryLayer
impl UnwindSafe for IUnaryLayer
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