pub struct SigmoidOperation<'c> { /* private fields */ }
Expand description
A sigmoid
operation. Computes elementwise sigmoid of input..
Sigmoid function: output = 1 / (1 + exp(-input)) For quantized integer data types, the TABLE operator should be used instead with the following definition. The sigmoid table has 513 entries each of 16-bit precision and covering the input range -16.0 to +16.0 in steps of 1/16.
Implementations§
source§impl<'c> SigmoidOperation<'c>
impl<'c> SigmoidOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> SigmoidOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> SigmoidOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn output(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn input(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<SigmoidOperation<'c>> for Operation<'c>
impl<'c> From<SigmoidOperation<'c>> for Operation<'c>
source§fn from(operation: SigmoidOperation<'c>) -> Self
fn from(operation: SigmoidOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for SigmoidOperation<'c>
impl<'c> !Send for SigmoidOperation<'c>
impl<'c> !Sync for SigmoidOperation<'c>
impl<'c> Unpin for SigmoidOperation<'c>
impl<'c> UnwindSafe for SigmoidOperation<'c>
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