pub struct DepthwiseConv2d { /* private fields */ }Implementations§
Source§impl DepthwiseConv2d
impl DepthwiseConv2d
Sourcepub fn new(
data_format: DataFormat,
padding: PaddingSpec,
strides: TVec<usize>,
dilations: TVec<usize>,
) -> Self
pub fn new( data_format: DataFormat, padding: PaddingSpec, strides: TVec<usize>, dilations: TVec<usize>, ) -> Self
Constructs a new DepthwiseConv2d.
Trait Implementations§
Source§impl Clone for DepthwiseConv2d
impl Clone for DepthwiseConv2d
Source§fn clone(&self) -> DepthwiseConv2d
fn clone(&self) -> DepthwiseConv2d
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 Debug for DepthwiseConv2d
impl Debug for DepthwiseConv2d
Source§impl Expansion for DepthwiseConv2d
impl Expansion for DepthwiseConv2d
fn name(&self) -> StaticName
fn rules<'r, 'p: 'r, 's: 'r>( &'s self, s: &mut Solver<'r>, inputs: &'p [TensorProxy], outputs: &'p [TensorProxy], ) -> InferenceResult
fn wire( &self, prefix: &str, model: &mut TypedModel, inputs: &[OutletId], ) -> TractResult<TVec<OutletId>>
fn validation(&self) -> Validation
fn info(&self) -> Result<Vec<String>, Error>
fn nboutputs(&self) -> Result<usize, Error>
fn wire_with_inference_model_and_node( &self, prefix: &str, model: &Graph<InferenceFact, Box<dyn InferenceOp>>, node: &Node<InferenceFact, Box<dyn InferenceOp>>, typed_model: &mut Graph<TypedFact, Box<dyn TypedOp>>, inputs: &[OutletId], ) -> Result<SmallVec<[OutletId; 4]>, Error>
fn is_stateless(&self) -> bool
Auto Trait Implementations§
impl Freeze for DepthwiseConv2d
impl RefUnwindSafe for DepthwiseConv2d
impl Send for DepthwiseConv2d
impl Sync for DepthwiseConv2d
impl Unpin for DepthwiseConv2d
impl UnwindSafe for DepthwiseConv2d
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more