Struct ActivationLayer

Source
pub struct ActivationLayer { /* private fields */ }

Implementations§

Source§

impl ActivationLayer

Source

pub fn default() -> ActivationLayer

Creates a default instance of the class by calling the default constructor

Trait Implementations§

Source§

impl ActivationLayerTrait for ActivationLayer

Source§

impl ActivationLayerTraitConst for ActivationLayer

Source§

fn as_raw_ActivationLayer(&self) -> *const c_void

Source§

fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>

Source§

fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>

Source§

impl AlgorithmTrait for ActivationLayer

Source§

fn as_raw_mut_Algorithm(&mut self) -> *mut c_void

Source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
Source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
Source§

impl AlgorithmTraitConst for ActivationLayer

Source§

fn as_raw_Algorithm(&self) -> *const c_void

Source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
Source§

fn write_1(&self, fs: &mut impl FileStorageTrait, name: &str) -> Result<()>

Stores algorithm parameters in a file storage Read more
Source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

@deprecated Read more
Source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

👎Deprecated:

§Note

Deprecated: ## Note This alternative version of AlgorithmTraitConst::write_with_name function uses the following default values for its arguments: Read more
Source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
Source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
Source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
Source§

impl Boxed for ActivationLayer

Source§

unsafe fn from_raw( ptr: <ActivationLayer as OpenCVFromExtern>::ExternReceive, ) -> Self

Wrap the specified raw pointer Read more
Source§

fn into_raw( self, ) -> <ActivationLayer as OpenCVTypeExternContainer>::ExternSendMut

Return the underlying raw pointer while consuming this wrapper. Read more
Source§

fn as_raw(&self) -> <ActivationLayer as OpenCVTypeExternContainer>::ExternSend

Return the underlying raw pointer. Read more
Source§

fn as_raw_mut( &mut self, ) -> <ActivationLayer as OpenCVTypeExternContainer>::ExternSendMut

Return the underlying mutable raw pointer Read more
Source§

impl Debug for ActivationLayer

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ActivationLayer

Source§

fn default() -> Self

Forwards to infallible Self::default()

Source§

impl Drop for ActivationLayer

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl From<AbsLayer> for ActivationLayer

Source§

fn from(s: AbsLayer) -> Self

Converts to this type from the input type.
Source§

impl From<AcosLayer> for ActivationLayer

Source§

fn from(s: AcosLayer) -> Self

Converts to this type from the input type.
Source§

impl From<AcoshLayer> for ActivationLayer

Source§

fn from(s: AcoshLayer) -> Self

Converts to this type from the input type.
Source§

impl From<ActivationLayer> for Algorithm

Source§

fn from(s: ActivationLayer) -> Self

Converts to this type from the input type.
Source§

impl From<ActivationLayer> for Layer

Source§

fn from(s: ActivationLayer) -> Self

Converts to this type from the input type.
Source§

impl From<ActivationLayerInt8> for ActivationLayer

Source§

fn from(s: ActivationLayerInt8) -> Self

Converts to this type from the input type.
Source§

impl From<AsinLayer> for ActivationLayer

Source§

fn from(s: AsinLayer) -> Self

Converts to this type from the input type.
Source§

impl From<AsinhLayer> for ActivationLayer

Source§

fn from(s: AsinhLayer) -> Self

Converts to this type from the input type.
Source§

impl From<AtanLayer> for ActivationLayer

Source§

fn from(s: AtanLayer) -> Self

Converts to this type from the input type.
Source§

impl From<AtanhLayer> for ActivationLayer

Source§

fn from(s: AtanhLayer) -> Self

Converts to this type from the input type.
Source§

impl From<BNLLLayer> for ActivationLayer

Source§

fn from(s: BNLLLayer) -> Self

Converts to this type from the input type.
Source§

impl From<BatchNormLayer> for ActivationLayer

Source§

fn from(s: BatchNormLayer) -> Self

Converts to this type from the input type.
Source§

impl From<BatchNormLayerInt8> for ActivationLayer

Source§

fn from(s: BatchNormLayerInt8) -> Self

Converts to this type from the input type.
Source§

impl From<CeilLayer> for ActivationLayer

Source§

fn from(s: CeilLayer) -> Self

Converts to this type from the input type.
Source§

impl From<CeluLayer> for ActivationLayer

Source§

fn from(s: CeluLayer) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelsPReLULayer> for ActivationLayer

Source§

fn from(s: ChannelsPReLULayer) -> Self

Converts to this type from the input type.
Source§

impl From<CosLayer> for ActivationLayer

Source§

fn from(s: CosLayer) -> Self

Converts to this type from the input type.
Source§

impl From<CoshLayer> for ActivationLayer

Source§

fn from(s: CoshLayer) -> Self

Converts to this type from the input type.
Source§

impl From<ELULayer> for ActivationLayer

Source§

fn from(s: ELULayer) -> Self

Converts to this type from the input type.
Source§

impl From<ErfLayer> for ActivationLayer

Source§

fn from(s: ErfLayer) -> Self

Converts to this type from the input type.
Source§

impl From<ExpLayer> for ActivationLayer

Source§

fn from(s: ExpLayer) -> Self

Converts to this type from the input type.
Source§

impl From<FloorLayer> for ActivationLayer

Source§

fn from(s: FloorLayer) -> Self

Converts to this type from the input type.
Source§

impl From<GeluApproximationLayer> for ActivationLayer

Source§

fn from(s: GeluApproximationLayer) -> Self

Converts to this type from the input type.
Source§

impl From<GeluLayer> for ActivationLayer

Source§

fn from(s: GeluLayer) -> Self

Converts to this type from the input type.
Source§

impl From<HardSigmoidLayer> for ActivationLayer

Source§

fn from(s: HardSigmoidLayer) -> Self

Converts to this type from the input type.
Source§

impl From<HardSwishLayer> for ActivationLayer

Source§

fn from(s: HardSwishLayer) -> Self

Converts to this type from the input type.
Source§

impl From<LogLayer> for ActivationLayer

Source§

fn from(s: LogLayer) -> Self

Converts to this type from the input type.
Source§

impl From<MishLayer> for ActivationLayer

Source§

fn from(s: MishLayer) -> Self

Converts to this type from the input type.
Source§

impl From<NotLayer> for ActivationLayer

Source§

fn from(s: NotLayer) -> Self

Converts to this type from the input type.
Source§

impl From<PowerLayer> for ActivationLayer

Source§

fn from(s: PowerLayer) -> Self

Converts to this type from the input type.
Source§

impl From<ReLU6Layer> for ActivationLayer

Source§

fn from(s: ReLU6Layer) -> Self

Converts to this type from the input type.
Source§

impl From<ReLULayer> for ActivationLayer

Source§

fn from(s: ReLULayer) -> Self

Converts to this type from the input type.
Source§

impl From<ReciprocalLayer> for ActivationLayer

Source§

fn from(s: ReciprocalLayer) -> Self

Converts to this type from the input type.
Source§

impl From<RoundLayer> for ActivationLayer

Source§

fn from(s: RoundLayer) -> Self

Converts to this type from the input type.
Source§

impl From<SeluLayer> for ActivationLayer

Source§

fn from(s: SeluLayer) -> Self

Converts to this type from the input type.
Source§

impl From<ShrinkLayer> for ActivationLayer

Source§

fn from(s: ShrinkLayer) -> Self

Converts to this type from the input type.
Source§

impl From<SigmoidLayer> for ActivationLayer

Source§

fn from(s: SigmoidLayer) -> Self

Converts to this type from the input type.
Source§

impl From<SignLayer> for ActivationLayer

Source§

fn from(s: SignLayer) -> Self

Converts to this type from the input type.
Source§

impl From<SinLayer> for ActivationLayer

Source§

fn from(s: SinLayer) -> Self

Converts to this type from the input type.
Source§

impl From<SinhLayer> for ActivationLayer

Source§

fn from(s: SinhLayer) -> Self

Converts to this type from the input type.
Source§

impl From<SoftplusLayer> for ActivationLayer

Source§

fn from(s: SoftplusLayer) -> Self

Converts to this type from the input type.
Source§

impl From<SoftsignLayer> for ActivationLayer

Source§

fn from(s: SoftsignLayer) -> Self

Converts to this type from the input type.
Source§

impl From<SqrtLayer> for ActivationLayer

Source§

fn from(s: SqrtLayer) -> Self

Converts to this type from the input type.
Source§

impl From<SwishLayer> for ActivationLayer

Source§

fn from(s: SwishLayer) -> Self

Converts to this type from the input type.
Source§

impl From<TanHLayer> for ActivationLayer

Source§

fn from(s: TanHLayer) -> Self

Converts to this type from the input type.
Source§

impl From<TanLayer> for ActivationLayer

Source§

fn from(s: TanLayer) -> Self

Converts to this type from the input type.
Source§

impl From<ThresholdedReluLayer> for ActivationLayer

Source§

fn from(s: ThresholdedReluLayer) -> Self

Converts to this type from the input type.
Source§

impl LayerTrait for ActivationLayer

Source§

fn as_raw_mut_Layer(&mut self) -> *mut c_void

Source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
Source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
Source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
Source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
Source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
Source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
Source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
Source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
Source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
Source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
Source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
Source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
Source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
Source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
Source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
Source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
Source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>

Source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &mut Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>

Source§

fn init_webnn( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>

Source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
Source§

unsafe fn init_tim_vx( &mut self, tim_vx_info: *mut c_void, inputs_wrapper: &Vector<Ptr<BackendWrapper>>, outputs_wrapper: &Vector<Ptr<BackendWrapper>>, is_last: bool, ) -> Result<Ptr<BackendNode>>

Returns a TimVX backend node Read more
Source§

fn init_cann( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>

Returns a CANN backend node Read more
Source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
Source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
Source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
Source§

fn unset_attached(&mut self) -> Result<()>

“Detaches” all the layers, attached to particular layer.
Source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

Source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

Source§

impl LayerTraitConst for ActivationLayer

Source§

fn as_raw_Layer(&self) -> *const c_void

Source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
Source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
Source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
Source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
Source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
Source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
Source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>

Returns scale and zeropoint of layers Read more
Source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>

Source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>

Source§

impl TryFrom<ActivationLayer> for AbsLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for AcosLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for AcoshLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for ActivationLayerInt8

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for AsinLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for AsinhLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for AtanLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for AtanhLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for BNLLLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for BatchNormLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for BatchNormLayerInt8

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for CeilLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for CeluLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for ChannelsPReLULayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for CosLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for CoshLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for ELULayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for ErfLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for ExpLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for FloorLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for GeluApproximationLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for GeluLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for HardSigmoidLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for HardSwishLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for LogLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for MishLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for NotLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for PowerLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for ReLU6Layer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for ReLULayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for ReciprocalLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for RoundLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for SeluLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for ShrinkLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for SigmoidLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for SignLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for SinLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for SinhLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for SoftplusLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for SoftsignLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for SqrtLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for SwishLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for TanHLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for TanLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<ActivationLayer> for ThresholdedReluLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: ActivationLayer) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<Layer> for ActivationLayer

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: Layer) -> Result<Self>

Performs the conversion.
Source§

impl Send for ActivationLayer

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Mat> ModifyInplace for Mat
where Mat: Boxed,

Source§

unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res, ) -> Res

Helper function to call OpenCV functions that allow in-place modification of a Mat or another similar object. By passing a mutable reference to the Mat to this function your closure will get called with the read reference and a write references to the same Mat. This is unsafe in a general case as it leads to having non-exclusive mutable access to the internal data, but it can be useful for some performance sensitive operations. One example of an OpenCV function that allows such in-place modification is imgproc::threshold. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.