pub struct FullyConnectedOperation<'c> { /* private fields */ }
Expand description
A fully_connected
operation. Fully Connected operator.
Performs a fully connected network.
Implementations§
source§impl<'c> FullyConnectedOperation<'c>
impl<'c> FullyConnectedOperation<'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>
) -> FullyConnectedOperationBuilder<'c, Unset, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> FullyConnectedOperationBuilder<'c, Unset, Unset, Unset, Unset>
Creates a builder.
pub fn output(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn input(&self) -> Result<Value<'c, '_>, Error>
pub fn weight(&self) -> Result<Value<'c, '_>, Error>
pub fn bias(&self) -> Result<Value<'c, '_>, Error>
pub fn quantization_info(&self) -> Result<Attribute<'c>, Error>
pub fn set_quantization_info(&mut self, value: Attribute<'c>)
pub fn remove_quantization_info(&mut self) -> Result<(), Error>
Trait Implementations§
source§impl<'c> From<FullyConnectedOperation<'c>> for Operation<'c>
impl<'c> From<FullyConnectedOperation<'c>> for Operation<'c>
source§fn from(operation: FullyConnectedOperation<'c>) -> Self
fn from(operation: FullyConnectedOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for FullyConnectedOperation<'c>
impl<'c> !Send for FullyConnectedOperation<'c>
impl<'c> !Sync for FullyConnectedOperation<'c>
impl<'c> Unpin for FullyConnectedOperation<'c>
impl<'c> UnwindSafe for FullyConnectedOperation<'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