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§
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>
pub fn builder( context: &'c Context, location: Location<'c> ) -> DepthwiseConv2DOperationBuilder<'c, 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 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 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<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.
Auto Trait Implementations§
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