pub struct DepthwiseConv2DOperation<'c> { /* private fields */ }Expand description
A depthwise_conv2d operation. Depthwise 2D Convolution operator..
Performs 2D convolutions separately over each channel of the given tensor input, using the weight tensor. Implementations may choose to skip calculation of multiplies in the padding area.
Implementations§
Source§impl<'c> DepthwiseConv2DOperation<'c>
impl<'c> DepthwiseConv2DOperation<'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>,
) -> DepthwiseConv2DOperationBuilder<'c, Unset, Unset, Unset, Unset, Unset, Unset, Unset, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c>, ) -> DepthwiseConv2DOperationBuilder<'c, Unset, Unset, Unset, Unset, Unset, Unset, 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 input_zp(&self) -> Result<Value<'c, '_>, Error>
pub fn weight_zp(&self) -> Result<Value<'c, '_>, Error>
pub fn pad(&self) -> Result<Attribute<'c>, Error>
pub fn set_pad(&mut self, value: Attribute<'c>)
pub fn stride(&self) -> Result<Attribute<'c>, Error>
pub fn set_stride(&mut self, value: Attribute<'c>)
pub fn dilation(&self) -> Result<Attribute<'c>, Error>
pub fn set_dilation(&mut self, value: Attribute<'c>)
pub fn acc_type(&self) -> Result<TypeAttribute<'c>, Error>
pub fn set_acc_type(&mut self, value: TypeAttribute<'c>)
pub fn local_bound(&self) -> Result<Attribute<'c>, Error>
pub fn set_local_bound(&mut self, value: Attribute<'c>)
pub fn remove_local_bound(&mut self) -> Result<(), Error>
Trait Implementations§
Source§impl<'c> Clone for DepthwiseConv2DOperation<'c>
impl<'c> Clone for DepthwiseConv2DOperation<'c>
Source§fn clone(&self) -> DepthwiseConv2DOperation<'c>
fn clone(&self) -> DepthwiseConv2DOperation<'c>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'c> Debug for DepthwiseConv2DOperation<'c>
impl<'c> Debug for DepthwiseConv2DOperation<'c>
Source§impl<'b> From<DepthwiseConv2DOperation<'b>> for TosaDialectOperation<'b>
impl<'b> From<DepthwiseConv2DOperation<'b>> for TosaDialectOperation<'b>
Source§fn from(op: DepthwiseConv2DOperation<'b>) -> Self
fn from(op: DepthwiseConv2DOperation<'b>) -> Self
Converts to this type from the input type.
Source§impl<'c> From<DepthwiseConv2DOperation<'c>> for Operation<'c>
impl<'c> From<DepthwiseConv2DOperation<'c>> for Operation<'c>
Source§fn from(operation: DepthwiseConv2DOperation<'c>) -> Self
fn from(operation: DepthwiseConv2DOperation<'c>) -> Self
Converts to this type from the input type.
Source§impl<'c> PartialEq for DepthwiseConv2DOperation<'c>
impl<'c> PartialEq for DepthwiseConv2DOperation<'c>
Source§fn eq(&self, other: &DepthwiseConv2DOperation<'c>) -> bool
fn eq(&self, other: &DepthwiseConv2DOperation<'c>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'c> TryFrom<Operation<'c>> for DepthwiseConv2DOperation<'c>
impl<'c> TryFrom<Operation<'c>> for DepthwiseConv2DOperation<'c>
impl<'c> Eq for DepthwiseConv2DOperation<'c>
impl<'c> StructuralPartialEq for DepthwiseConv2DOperation<'c>
Auto Trait Implementations§
impl<'c> Freeze for DepthwiseConv2DOperation<'c>
impl<'c> RefUnwindSafe for DepthwiseConv2DOperation<'c>
impl<'c> !Send for DepthwiseConv2DOperation<'c>
impl<'c> !Sync for DepthwiseConv2DOperation<'c>
impl<'c> Unpin for DepthwiseConv2DOperation<'c>
impl<'c> UnwindSafe for DepthwiseConv2DOperation<'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