pub trait SliceLayerTraitConst: LayerTraitConst {
// Required method
fn as_raw_SliceLayer(&self) -> *const c_void;
// Provided methods
fn slice_ranges(&self) -> Vector<Vector<Range>> { ... }
fn slice_steps(&self) -> Vector<Vector<i32>> { ... }
fn axis(&self) -> i32 { ... }
fn num_split(&self) -> i32 { ... }
}
Expand description
Constant methods for crate::dnn::SliceLayer
Required Methods§
fn as_raw_SliceLayer(&self) -> *const c_void
Provided Methods§
Sourcefn slice_ranges(&self) -> Vector<Vector<Range>>
fn slice_ranges(&self) -> Vector<Vector<Range>>
Vector of slice ranges.
The first dimension equals number of output blobs. Inner vector has slice ranges for the first number of input dimensions.
fn slice_steps(&self) -> Vector<Vector<i32>>
fn axis(&self) -> i32
fn num_split(&self) -> i32
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.