Struct tract_hir::ops::cnn::Conv [−][src]
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: DataFormatkernel_fmt: KernelFormatdilations: Option<TVec<usize>>kernel_shape: Option<TVec<usize>>padding: PaddingSpecstrides: 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
pub fn output_shape<D: DimLike>(
&self,
ishape: &[D],
kshape: &[usize]
) -> TractResult<TVec<D>>
Trait Implementations
fn op_families(&self) -> &'static [&'static str]ⓘ
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>>
Auto Trait Implementations
impl RefUnwindSafe for Conv
impl UnwindSafe for Conv
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘimpl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘimpl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;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. Read more
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more