pub struct Conv {Show 16 fields
pub data_format: DataFormat,
pub kernel_fmt: KernelFormat,
pub dilations: Option<TVec<usize>>,
pub kernel_shape: Option<TVec<usize>>,
pub padding: PaddingSpec,
pub strides: Option<TVec<usize>>,
pub group: Option<usize>,
pub x_scale_input: Option<usize>,
pub x_zero_point_input: Option<usize>,
pub k_input: Option<usize>,
pub k_scale_input: Option<usize>,
pub k_zero_point_input: Option<usize>,
pub y_scale_input: Option<usize>,
pub y_zero_point_input: Option<usize>,
pub bias_input: Option<usize>,
pub override_output_datum_type: Option<DatumType>,
}Fields§
§data_format: DataFormat§kernel_fmt: KernelFormat§dilations: Option<TVec<usize>>§kernel_shape: Option<TVec<usize>>§padding: PaddingSpec§strides: Option<TVec<usize>>§group: Option<usize>§x_scale_input: Option<usize>§x_zero_point_input: Option<usize>§k_input: Option<usize>§k_scale_input: Option<usize>§k_zero_point_input: Option<usize>§y_scale_input: Option<usize>§y_zero_point_input: Option<usize>§bias_input: Option<usize>§override_output_datum_type: Option<DatumType>Implementations§
Source§impl Conv
impl Conv
pub fn hwc(self) -> Conv
pub fn nhwc(self) -> Conv
pub fn hwio(self) -> Conv
pub fn padding(self, padding: PaddingSpec) -> Conv
pub fn dilations(self, dilations: TVec<usize>) -> Conv
pub fn group(self, group: usize) -> Conv
pub fn strides(self, strides: TVec<usize>) -> Conv
pub fn kernel_shape(self, kernel_shape: TVec<usize>) -> Conv
pub fn bias_input(self, input: usize) -> Conv
pub fn x_zero_point_input(self, input: usize) -> Conv
pub fn k_zero_point_input(self, input: usize) -> Conv
pub fn output_shape<D: DimLike>( &self, ishape: &[D], kshape: &[usize], ) -> TractResult<TVec<D>>
Trait Implementations§
Source§impl Expansion for Conv
impl Expansion for Conv
fn name(&self) -> StaticName
fn validation(&self) -> Validation
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 info(&self) -> TractResult<Vec<String>>
fn nboutputs(&self) -> TractResult<usize>
fn wire_with_inference_model_and_node( &self, prefix: &str, model: &InferenceModel, node: &InferenceNode, typed_model: &mut TypedModel, inputs: &[OutletId], ) -> TractResult<TVec<OutletId>>
fn is_stateless(&self) -> bool
Auto Trait Implementations§
impl Freeze for Conv
impl RefUnwindSafe for Conv
impl Send for Conv
impl Sync for Conv
impl Unpin for Conv
impl UnwindSafe for Conv
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