pub struct ActivationLayer { /* private fields */ }
Implementations§
Source§impl ActivationLayer
impl ActivationLayer
Sourcepub fn default() -> ActivationLayer
pub fn default() -> ActivationLayer
Creates a default instance of the class by calling the default constructor
Trait Implementations§
Source§impl ActivationLayerTrait for ActivationLayer
impl ActivationLayerTrait for ActivationLayer
fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void
Source§impl ActivationLayerTraitConst for ActivationLayer
impl ActivationLayerTraitConst for ActivationLayer
fn as_raw_ActivationLayer(&self) -> *const c_void
fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
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
impl AlgorithmTrait for ActivationLayer
Source§impl AlgorithmTraitConst for ActivationLayer
impl AlgorithmTraitConst for ActivationLayer
fn as_raw_Algorithm(&self) -> *const c_void
Source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
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<()>
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<()>
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<()>
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>
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<()>
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>
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
impl Boxed for ActivationLayer
Source§unsafe fn from_raw(
ptr: <ActivationLayer as OpenCVFromExtern>::ExternReceive,
) -> Self
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
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
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
fn as_raw_mut( &mut self, ) -> <ActivationLayer as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
Source§impl Debug for ActivationLayer
impl Debug for ActivationLayer
Source§impl Default for ActivationLayer
impl Default for ActivationLayer
Source§impl Drop for ActivationLayer
impl Drop for ActivationLayer
Source§impl From<AbsLayer> for ActivationLayer
impl From<AbsLayer> for ActivationLayer
Source§impl From<AcosLayer> for ActivationLayer
impl From<AcosLayer> for ActivationLayer
Source§impl From<AcoshLayer> for ActivationLayer
impl From<AcoshLayer> for ActivationLayer
Source§fn from(s: AcoshLayer) -> Self
fn from(s: AcoshLayer) -> Self
Converts to this type from the input type.
Source§impl From<ActivationLayer> for Algorithm
impl From<ActivationLayer> for Algorithm
Source§fn from(s: ActivationLayer) -> Self
fn from(s: ActivationLayer) -> Self
Converts to this type from the input type.
Source§impl From<ActivationLayer> for Layer
impl From<ActivationLayer> for Layer
Source§fn from(s: ActivationLayer) -> Self
fn from(s: ActivationLayer) -> Self
Converts to this type from the input type.
Source§impl From<ActivationLayerInt8> for ActivationLayer
impl From<ActivationLayerInt8> for ActivationLayer
Source§fn from(s: ActivationLayerInt8) -> Self
fn from(s: ActivationLayerInt8) -> Self
Converts to this type from the input type.
Source§impl From<AsinLayer> for ActivationLayer
impl From<AsinLayer> for ActivationLayer
Source§impl From<AsinhLayer> for ActivationLayer
impl From<AsinhLayer> for ActivationLayer
Source§fn from(s: AsinhLayer) -> Self
fn from(s: AsinhLayer) -> Self
Converts to this type from the input type.
Source§impl From<AtanLayer> for ActivationLayer
impl From<AtanLayer> for ActivationLayer
Source§impl From<AtanhLayer> for ActivationLayer
impl From<AtanhLayer> for ActivationLayer
Source§fn from(s: AtanhLayer) -> Self
fn from(s: AtanhLayer) -> Self
Converts to this type from the input type.
Source§impl From<BNLLLayer> for ActivationLayer
impl From<BNLLLayer> for ActivationLayer
Source§impl From<BatchNormLayer> for ActivationLayer
impl From<BatchNormLayer> for ActivationLayer
Source§fn from(s: BatchNormLayer) -> Self
fn from(s: BatchNormLayer) -> Self
Converts to this type from the input type.
Source§impl From<BatchNormLayerInt8> for ActivationLayer
impl From<BatchNormLayerInt8> for ActivationLayer
Source§fn from(s: BatchNormLayerInt8) -> Self
fn from(s: BatchNormLayerInt8) -> Self
Converts to this type from the input type.
Source§impl From<CeilLayer> for ActivationLayer
impl From<CeilLayer> for ActivationLayer
Source§impl From<CeluLayer> for ActivationLayer
impl From<CeluLayer> for ActivationLayer
Source§impl From<ChannelsPReLULayer> for ActivationLayer
impl From<ChannelsPReLULayer> for ActivationLayer
Source§fn from(s: ChannelsPReLULayer) -> Self
fn from(s: ChannelsPReLULayer) -> Self
Converts to this type from the input type.
Source§impl From<CosLayer> for ActivationLayer
impl From<CosLayer> for ActivationLayer
Source§impl From<CoshLayer> for ActivationLayer
impl From<CoshLayer> for ActivationLayer
Source§impl From<ELULayer> for ActivationLayer
impl From<ELULayer> for ActivationLayer
Source§impl From<ErfLayer> for ActivationLayer
impl From<ErfLayer> for ActivationLayer
Source§impl From<ExpLayer> for ActivationLayer
impl From<ExpLayer> for ActivationLayer
Source§impl From<FloorLayer> for ActivationLayer
impl From<FloorLayer> for ActivationLayer
Source§fn from(s: FloorLayer) -> Self
fn from(s: FloorLayer) -> Self
Converts to this type from the input type.
Source§impl From<GeluApproximationLayer> for ActivationLayer
impl From<GeluApproximationLayer> for ActivationLayer
Source§fn from(s: GeluApproximationLayer) -> Self
fn from(s: GeluApproximationLayer) -> Self
Converts to this type from the input type.
Source§impl From<GeluLayer> for ActivationLayer
impl From<GeluLayer> for ActivationLayer
Source§impl From<HardSigmoidLayer> for ActivationLayer
impl From<HardSigmoidLayer> for ActivationLayer
Source§fn from(s: HardSigmoidLayer) -> Self
fn from(s: HardSigmoidLayer) -> Self
Converts to this type from the input type.
Source§impl From<HardSwishLayer> for ActivationLayer
impl From<HardSwishLayer> for ActivationLayer
Source§fn from(s: HardSwishLayer) -> Self
fn from(s: HardSwishLayer) -> Self
Converts to this type from the input type.
Source§impl From<LogLayer> for ActivationLayer
impl From<LogLayer> for ActivationLayer
Source§impl From<MishLayer> for ActivationLayer
impl From<MishLayer> for ActivationLayer
Source§impl From<NotLayer> for ActivationLayer
impl From<NotLayer> for ActivationLayer
Source§impl From<PowerLayer> for ActivationLayer
impl From<PowerLayer> for ActivationLayer
Source§fn from(s: PowerLayer) -> Self
fn from(s: PowerLayer) -> Self
Converts to this type from the input type.
Source§impl From<ReLU6Layer> for ActivationLayer
impl From<ReLU6Layer> for ActivationLayer
Source§fn from(s: ReLU6Layer) -> Self
fn from(s: ReLU6Layer) -> Self
Converts to this type from the input type.
Source§impl From<ReLULayer> for ActivationLayer
impl From<ReLULayer> for ActivationLayer
Source§impl From<ReciprocalLayer> for ActivationLayer
impl From<ReciprocalLayer> for ActivationLayer
Source§fn from(s: ReciprocalLayer) -> Self
fn from(s: ReciprocalLayer) -> Self
Converts to this type from the input type.
Source§impl From<RoundLayer> for ActivationLayer
impl From<RoundLayer> for ActivationLayer
Source§fn from(s: RoundLayer) -> Self
fn from(s: RoundLayer) -> Self
Converts to this type from the input type.
Source§impl From<SeluLayer> for ActivationLayer
impl From<SeluLayer> for ActivationLayer
Source§impl From<ShrinkLayer> for ActivationLayer
impl From<ShrinkLayer> for ActivationLayer
Source§fn from(s: ShrinkLayer) -> Self
fn from(s: ShrinkLayer) -> Self
Converts to this type from the input type.
Source§impl From<SigmoidLayer> for ActivationLayer
impl From<SigmoidLayer> for ActivationLayer
Source§fn from(s: SigmoidLayer) -> Self
fn from(s: SigmoidLayer) -> Self
Converts to this type from the input type.
Source§impl From<SignLayer> for ActivationLayer
impl From<SignLayer> for ActivationLayer
Source§impl From<SinLayer> for ActivationLayer
impl From<SinLayer> for ActivationLayer
Source§impl From<SinhLayer> for ActivationLayer
impl From<SinhLayer> for ActivationLayer
Source§impl From<SoftplusLayer> for ActivationLayer
impl From<SoftplusLayer> for ActivationLayer
Source§fn from(s: SoftplusLayer) -> Self
fn from(s: SoftplusLayer) -> Self
Converts to this type from the input type.
Source§impl From<SoftsignLayer> for ActivationLayer
impl From<SoftsignLayer> for ActivationLayer
Source§fn from(s: SoftsignLayer) -> Self
fn from(s: SoftsignLayer) -> Self
Converts to this type from the input type.
Source§impl From<SqrtLayer> for ActivationLayer
impl From<SqrtLayer> for ActivationLayer
Source§impl From<SwishLayer> for ActivationLayer
impl From<SwishLayer> for ActivationLayer
Source§fn from(s: SwishLayer) -> Self
fn from(s: SwishLayer) -> Self
Converts to this type from the input type.
Source§impl From<TanHLayer> for ActivationLayer
impl From<TanHLayer> for ActivationLayer
Source§impl From<TanLayer> for ActivationLayer
impl From<TanLayer> for ActivationLayer
Source§impl From<ThresholdedReluLayer> for ActivationLayer
impl From<ThresholdedReluLayer> for ActivationLayer
Source§fn from(s: ThresholdedReluLayer) -> Self
fn from(s: ThresholdedReluLayer) -> Self
Converts to this type from the input type.
Source§impl LayerTrait for ActivationLayer
impl LayerTrait for ActivationLayer
fn as_raw_mut_Layer(&mut self) -> *mut c_void
Source§fn set_blobs(&mut self, val: Vector<Mat>)
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)
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)
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)
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<()>
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<()>
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<()>
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>
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<()>
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<()>
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>>
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<()>
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>
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>
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>
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>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &mut Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
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>>
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>>
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>>
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>>
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>
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>
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<()>
fn unset_attached(&mut self) -> Result<()>
“Detaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
Source§impl LayerTraitConst for ActivationLayer
impl LayerTraitConst for ActivationLayer
fn as_raw_Layer(&self) -> *const c_void
Source§fn blobs(&self) -> Vector<Mat>
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
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
Source§fn preferable_target(&self) -> i32
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<()>
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<()>
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<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
Source§impl TryFrom<ActivationLayer> for AbsLayer
impl TryFrom<ActivationLayer> for AbsLayer
Source§impl TryFrom<ActivationLayer> for AcosLayer
impl TryFrom<ActivationLayer> for AcosLayer
Source§impl TryFrom<ActivationLayer> for AcoshLayer
impl TryFrom<ActivationLayer> for AcoshLayer
Source§impl TryFrom<ActivationLayer> for ActivationLayerInt8
impl TryFrom<ActivationLayer> for ActivationLayerInt8
Source§impl TryFrom<ActivationLayer> for AsinLayer
impl TryFrom<ActivationLayer> for AsinLayer
Source§impl TryFrom<ActivationLayer> for AsinhLayer
impl TryFrom<ActivationLayer> for AsinhLayer
Source§impl TryFrom<ActivationLayer> for AtanLayer
impl TryFrom<ActivationLayer> for AtanLayer
Source§impl TryFrom<ActivationLayer> for AtanhLayer
impl TryFrom<ActivationLayer> for AtanhLayer
Source§impl TryFrom<ActivationLayer> for BNLLLayer
impl TryFrom<ActivationLayer> for BNLLLayer
Source§impl TryFrom<ActivationLayer> for BatchNormLayer
impl TryFrom<ActivationLayer> for BatchNormLayer
Source§impl TryFrom<ActivationLayer> for BatchNormLayerInt8
impl TryFrom<ActivationLayer> for BatchNormLayerInt8
Source§impl TryFrom<ActivationLayer> for CeilLayer
impl TryFrom<ActivationLayer> for CeilLayer
Source§impl TryFrom<ActivationLayer> for CeluLayer
impl TryFrom<ActivationLayer> for CeluLayer
Source§impl TryFrom<ActivationLayer> for ChannelsPReLULayer
impl TryFrom<ActivationLayer> for ChannelsPReLULayer
Source§impl TryFrom<ActivationLayer> for CosLayer
impl TryFrom<ActivationLayer> for CosLayer
Source§impl TryFrom<ActivationLayer> for CoshLayer
impl TryFrom<ActivationLayer> for CoshLayer
Source§impl TryFrom<ActivationLayer> for ELULayer
impl TryFrom<ActivationLayer> for ELULayer
Source§impl TryFrom<ActivationLayer> for ErfLayer
impl TryFrom<ActivationLayer> for ErfLayer
Source§impl TryFrom<ActivationLayer> for ExpLayer
impl TryFrom<ActivationLayer> for ExpLayer
Source§impl TryFrom<ActivationLayer> for FloorLayer
impl TryFrom<ActivationLayer> for FloorLayer
Source§impl TryFrom<ActivationLayer> for GeluLayer
impl TryFrom<ActivationLayer> for GeluLayer
Source§impl TryFrom<ActivationLayer> for HardSigmoidLayer
impl TryFrom<ActivationLayer> for HardSigmoidLayer
Source§impl TryFrom<ActivationLayer> for HardSwishLayer
impl TryFrom<ActivationLayer> for HardSwishLayer
Source§impl TryFrom<ActivationLayer> for LogLayer
impl TryFrom<ActivationLayer> for LogLayer
Source§impl TryFrom<ActivationLayer> for MishLayer
impl TryFrom<ActivationLayer> for MishLayer
Source§impl TryFrom<ActivationLayer> for NotLayer
impl TryFrom<ActivationLayer> for NotLayer
Source§impl TryFrom<ActivationLayer> for PowerLayer
impl TryFrom<ActivationLayer> for PowerLayer
Source§impl TryFrom<ActivationLayer> for ReLU6Layer
impl TryFrom<ActivationLayer> for ReLU6Layer
Source§impl TryFrom<ActivationLayer> for ReLULayer
impl TryFrom<ActivationLayer> for ReLULayer
Source§impl TryFrom<ActivationLayer> for ReciprocalLayer
impl TryFrom<ActivationLayer> for ReciprocalLayer
Source§impl TryFrom<ActivationLayer> for RoundLayer
impl TryFrom<ActivationLayer> for RoundLayer
Source§impl TryFrom<ActivationLayer> for SeluLayer
impl TryFrom<ActivationLayer> for SeluLayer
Source§impl TryFrom<ActivationLayer> for ShrinkLayer
impl TryFrom<ActivationLayer> for ShrinkLayer
Source§impl TryFrom<ActivationLayer> for SigmoidLayer
impl TryFrom<ActivationLayer> for SigmoidLayer
Source§impl TryFrom<ActivationLayer> for SignLayer
impl TryFrom<ActivationLayer> for SignLayer
Source§impl TryFrom<ActivationLayer> for SinLayer
impl TryFrom<ActivationLayer> for SinLayer
Source§impl TryFrom<ActivationLayer> for SinhLayer
impl TryFrom<ActivationLayer> for SinhLayer
Source§impl TryFrom<ActivationLayer> for SoftplusLayer
impl TryFrom<ActivationLayer> for SoftplusLayer
Source§impl TryFrom<ActivationLayer> for SoftsignLayer
impl TryFrom<ActivationLayer> for SoftsignLayer
Source§impl TryFrom<ActivationLayer> for SqrtLayer
impl TryFrom<ActivationLayer> for SqrtLayer
Source§impl TryFrom<ActivationLayer> for SwishLayer
impl TryFrom<ActivationLayer> for SwishLayer
Source§impl TryFrom<ActivationLayer> for TanHLayer
impl TryFrom<ActivationLayer> for TanHLayer
Source§impl TryFrom<ActivationLayer> for TanLayer
impl TryFrom<ActivationLayer> for TanLayer
Source§impl TryFrom<Layer> for ActivationLayer
impl TryFrom<Layer> for ActivationLayer
impl Send for ActivationLayer
Auto Trait Implementations§
impl Freeze for ActivationLayer
impl RefUnwindSafe for ActivationLayer
impl !Sync for ActivationLayer
impl Unpin for ActivationLayer
impl UnwindSafe for ActivationLayer
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<Mat> ModifyInplace for Matwhere
Mat: Boxed,
impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
Source§unsafe fn modify_inplace<Res>(
&mut self,
f: impl FnOnce(&Mat, &mut Mat) -> Res,
) -> Res
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