pub struct IReduceLayer { /* private fields */ }Expand description
IReduceLayer
Layer that represents a reduction across a non-bool tensor.
Do not inherit from this class, as doing so will break forward-compatibility of the API and ABI.
Implementations§
Source§impl IReduceLayer
impl IReduceLayer
Sourcepub fn setOperation(self: Pin<&mut IReduceLayer>, op: ReduceOperation)
pub fn setOperation(self: Pin<&mut IReduceLayer>, op: ReduceOperation)
Set the reduce operation for the layer.
See [getOperation()], ReduceOperation
Sourcepub fn getOperation(self: &IReduceLayer) -> ReduceOperation
pub fn getOperation(self: &IReduceLayer) -> ReduceOperation
Get the reduce operation for the layer.
See [setOperation()], ReduceOperation
Sourcepub fn setReduceAxes(self: Pin<&mut IReduceLayer>, reduceAxes: u32)
pub fn setReduceAxes(self: Pin<&mut IReduceLayer>, reduceAxes: u32)
Set the axes over which to reduce.
See [getReduceAxes]
Sourcepub fn getReduceAxes(self: &IReduceLayer) -> u32
pub fn getReduceAxes(self: &IReduceLayer) -> u32
Get the axes over which to reduce for the layer.
See [setReduceAxes]
Sourcepub fn setKeepDimensions(self: Pin<&mut IReduceLayer>, keepDimensions: bool)
pub fn setKeepDimensions(self: Pin<&mut IReduceLayer>, keepDimensions: bool)
Set the boolean that specifies whether or not to keep the reduced dimensions for the layer.
See [getKeepDimensions]
Sourcepub fn getKeepDimensions(self: &IReduceLayer) -> bool
pub fn getKeepDimensions(self: &IReduceLayer) -> bool
Get the boolean that specifies whether or not to keep the reduced dimensions for the layer.
See [setKeepDimensions]
Trait Implementations§
Source§impl AsLayer for IReduceLayer
impl AsLayer for IReduceLayer
Source§impl AsLayerTyped for IReduceLayer
impl AsLayerTyped for IReduceLayer
Source§impl AsRef<ILayer> for IReduceLayer
impl AsRef<ILayer> for IReduceLayer
Source§fn as_ref(self: &IReduceLayer) -> &ILayer
fn as_ref(self: &IReduceLayer) -> &ILayer
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl ExternType for IReduceLayer
impl ExternType for IReduceLayer
Source§impl MakeCppStorage for IReduceLayer
impl MakeCppStorage for IReduceLayer
Source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut IReduceLayer
unsafe fn allocate_uninitialized_cpp_storage() -> *mut IReduceLayer
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 IReduceLayer)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut IReduceLayer)
Frees a C++ allocation which has not yet
had a constructor called. Read more
Auto Trait Implementations§
impl !Freeze for IReduceLayer
impl !RefUnwindSafe for IReduceLayer
impl !Send for IReduceLayer
impl !Sync for IReduceLayer
impl Unpin for IReduceLayer
impl UnsafeUnpin for IReduceLayer
impl UnwindSafe for IReduceLayer
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