pub struct IRaggedSoftMaxLayer { /* private fields */ }Expand description
IRaggedSoftMaxLayer
A RaggedSoftmax layer in a network definition.
This layer takes a ZxS input tensor and an additional Zx1 bounds tensor holding the lengths of the Z sequences.
This layer computes a softmax across each of the Z sequences.
The output tensor is of the same size as the input tensor.
Do not inherit from this class, as doing so will break forward-compatibility of the API and ABI.
Trait Implementations§
Source§impl AsLayer for IRaggedSoftMaxLayer
impl AsLayer for IRaggedSoftMaxLayer
Source§impl AsLayerTyped for IRaggedSoftMaxLayer
impl AsLayerTyped for IRaggedSoftMaxLayer
Source§impl AsRef<ILayer> for IRaggedSoftMaxLayer
impl AsRef<ILayer> for IRaggedSoftMaxLayer
Source§fn as_ref(self: &IRaggedSoftMaxLayer) -> &ILayer
fn as_ref(self: &IRaggedSoftMaxLayer) -> &ILayer
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl ExternType for IRaggedSoftMaxLayer
impl ExternType for IRaggedSoftMaxLayer
Source§impl MakeCppStorage for IRaggedSoftMaxLayer
impl MakeCppStorage for IRaggedSoftMaxLayer
Source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut IRaggedSoftMaxLayer
unsafe fn allocate_uninitialized_cpp_storage() -> *mut IRaggedSoftMaxLayer
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 IRaggedSoftMaxLayer)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut IRaggedSoftMaxLayer)
Frees a C++ allocation which has not yet
had a constructor called. Read more
Auto Trait Implementations§
impl !Freeze for IRaggedSoftMaxLayer
impl !RefUnwindSafe for IRaggedSoftMaxLayer
impl !Send for IRaggedSoftMaxLayer
impl !Sync for IRaggedSoftMaxLayer
impl Unpin for IRaggedSoftMaxLayer
impl UnsafeUnpin for IRaggedSoftMaxLayer
impl UnwindSafe for IRaggedSoftMaxLayer
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