opencv::prelude

Trait LayerTrait

source
pub trait LayerTrait: AlgorithmTrait + LayerTraitConst {
Show 29 methods // Required method fn as_raw_mut_Layer(&mut self) -> *mut c_void; // Provided methods fn set_blobs(&mut self, val: Vector<Mat>) { ... } fn set_name(&mut self, val: &str) { ... } fn set_type(&mut self, val: &str) { ... } fn set_preferable_target(&mut self, val: i32) { ... } fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()> { ... } fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()> { ... } fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()> { ... } fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool> { ... } fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()> { ... } fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()> { ... } fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>> { ... } fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()> { ... } fn input_name_to_index(&mut self, input_name: &str) -> Result<i32> { ... } fn output_name_to_index(&mut self, output_name: &str) -> Result<i32> { ... } fn support_backend(&mut self, backend_id: i32) -> Result<bool> { ... } fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>> { ... } 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>> { ... } unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> 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>> { ... } fn init_cann( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>> { ... } fn try_attach( &mut self, node: &Ptr<BackendNode>, ) -> Result<Ptr<BackendNode>> { ... } fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool> { ... } fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool> { ... } fn unset_attached(&mut self) -> Result<()> { ... } fn update_memory_shapes( &mut self, inputs: &Vector<MatShape>, ) -> Result<bool> { ... } fn set_params_from( &mut self, params: &impl LayerParamsTraitConst, ) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::dnn::Layer

Required Methods§

Provided Methods§

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.

§Parameters
  • inputs: vector of already allocated input blobs
  • outputs:[out] vector of already allocated output blobs

This method is called after network has allocated all memory for input and output blobs and before inferencing.

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.

Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead

§Parameters
  • input: the input blobs.
  • output:[out] allocated output blobs, which will store results of the computation.
  • internals:[out] allocated internal blobs
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.

§Parameters
  • inputs: the input blobs.
  • outputs:[out] allocated output blobs, which will store results of the computation.
  • internals:[out] allocated internal blobs
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.

§Parameters
  • scales: input and output scales.
  • zeropoints: input and output zeropoints.
  • params:[out] Quantized parameters required for fixed point implementation of that layer.
§Returns

True if layer can be quantized.

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.

§Parameters
  • inputs: the input blobs.
  • outputs:[out] allocated output blobs, which will store results of the computation.
  • internals:[out] allocated internal blobs
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.

§Parameters
  • inputs: vector of already allocated input blobs
  • outputs:[out] vector of already allocated output blobs

This method is called after network has allocated all memory for input and output blobs and before inferencing.

§Overloaded parameters

Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead

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.

§Parameters
  • inputs: vector of already allocated input blobs
  • outputs:[out] vector of already allocated output blobs

This method is called after network has allocated all memory for input and output blobs and before inferencing.

§Overloaded parameters

Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead

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.

Deprecated: This method will be removed in the future release.

source

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

Returns index of input blob into the input array.

§Parameters
  • inputName: label of input blob

Each layer input and output can be labeled to easily identify them using “%<layer_name%>[.output_name]” notation. This method maps label of input blob to its index into input vector.

source

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

Returns index of output blob in output array.

§See also

inputNameToIndex()

source

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

Ask layer if it support specific backend for doing computations.

§Parameters
  • backendId: computation backend identifier.
§See also

Backend

source

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

Returns Halide backend node.

§Parameters
  • inputs: Input Halide buffers.
§See also

BackendNode, BackendWrapper

Input buffers should be exactly the same that will be used in forward invocations. Despite we can use Halide::ImageParam based on input shape only, it helps prevent some memory management issues (if something wrong, Halide tests will be failed).

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

§Parameters
  • context: void pointer to CSLContext object
  • inputs: layer inputs
  • outputs: layer outputs
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

§Parameters
  • timVxInfo: void pointer to CSLContext object
  • inputsWrapper: layer inputs
  • outputsWrapper: layer outputs
  • isLast: if the node is the last one of the TimVX Graph.
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

§Parameters
  • inputs: input tensors of CANN operator
  • outputs: output tensors of CANN operator
  • nodes: nodes of input tensors
source

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

Implement layers fusing.

§Parameters
  • node: Backend node of bottom layer.
§See also

BackendNode

Actual for graph-based backends. If layer attached successfully, returns non-empty cv::Ptr to node of the same backend. Fuse only over the last function.

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.

§Parameters
  • layer: The subsequent activation layer.

Returns true if the activation layer has been attached successfully.

source

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

Try to fuse current layer with a next one

§Parameters
  • top: Next layer to be fused.
§Returns

True if fusion was performed.

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<()>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl LayerTrait for BoxedRefMut<'_, AbsLayer>

source§

impl LayerTrait for BoxedRefMut<'_, AccumLayer>

source§

impl LayerTrait for BoxedRefMut<'_, AcosLayer>

source§

impl LayerTrait for BoxedRefMut<'_, AcoshLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ActivationLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ActivationLayerInt8>

source§

impl LayerTrait for BoxedRefMut<'_, ArgLayer>

source§

impl LayerTrait for BoxedRefMut<'_, AsinLayer>

source§

impl LayerTrait for BoxedRefMut<'_, AsinhLayer>

source§

impl LayerTrait for BoxedRefMut<'_, AtanLayer>

source§

impl LayerTrait for BoxedRefMut<'_, AtanhLayer>

source§

impl LayerTrait for BoxedRefMut<'_, AttentionLayer>

source§

impl LayerTrait for BoxedRefMut<'_, BNLLLayer>

source§

impl LayerTrait for BoxedRefMut<'_, BaseConvolutionLayer>

source§

impl LayerTrait for BoxedRefMut<'_, BatchNormLayer>

source§

impl LayerTrait for BoxedRefMut<'_, BatchNormLayerInt8>

source§

impl LayerTrait for BoxedRefMut<'_, BlankLayer>

source§

impl LayerTrait for BoxedRefMut<'_, CeilLayer>

source§

impl LayerTrait for BoxedRefMut<'_, CeluLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ChannelsPReLULayer>

source§

impl LayerTrait for BoxedRefMut<'_, CompareLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ConcatLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ConstLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ConvolutionLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ConvolutionLayerInt8>

source§

impl LayerTrait for BoxedRefMut<'_, CorrelationLayer>

source§

impl LayerTrait for BoxedRefMut<'_, CosLayer>

source§

impl LayerTrait for BoxedRefMut<'_, CoshLayer>

source§

impl LayerTrait for BoxedRefMut<'_, CropAndResizeLayer>

source§

impl LayerTrait for BoxedRefMut<'_, CropLayer>

source§

impl LayerTrait for BoxedRefMut<'_, CumSumLayer>

source§

impl LayerTrait for BoxedRefMut<'_, DataAugmentationLayer>

source§

impl LayerTrait for BoxedRefMut<'_, DeconvolutionLayer>

source§

impl LayerTrait for BoxedRefMut<'_, DequantizeLayer>

source§

impl LayerTrait for BoxedRefMut<'_, DetectionOutputLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ELULayer>

source§

impl LayerTrait for BoxedRefMut<'_, EinsumLayer>

source§

impl LayerTrait for BoxedRefMut<'_, EltwiseLayer>

source§

impl LayerTrait for BoxedRefMut<'_, EltwiseLayerInt8>

source§

impl LayerTrait for BoxedRefMut<'_, ErfLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ExpLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ExpandLayer>

source§

impl LayerTrait for BoxedRefMut<'_, FlattenLayer>

source§

impl LayerTrait for BoxedRefMut<'_, FloorLayer>

source§

impl LayerTrait for BoxedRefMut<'_, FlowWarpLayer>

source§

impl LayerTrait for BoxedRefMut<'_, GRULayer>

source§

impl LayerTrait for BoxedRefMut<'_, GatherElementsLayer>

source§

impl LayerTrait for BoxedRefMut<'_, GatherLayer>

source§

impl LayerTrait for BoxedRefMut<'_, GeluApproximationLayer>

source§

impl LayerTrait for BoxedRefMut<'_, GeluLayer>

source§

impl LayerTrait for BoxedRefMut<'_, GemmLayer>

source§

impl LayerTrait for BoxedRefMut<'_, GroupNormLayer>

source§

impl LayerTrait for BoxedRefMut<'_, HardSigmoidLayer>

source§

impl LayerTrait for BoxedRefMut<'_, HardSwishLayer>

source§

impl LayerTrait for BoxedRefMut<'_, InnerProductLayer>

source§

impl LayerTrait for BoxedRefMut<'_, InnerProductLayerInt8>

source§

impl LayerTrait for BoxedRefMut<'_, InstanceNormLayer>

source§

impl LayerTrait for BoxedRefMut<'_, InterpLayer>

source§

impl LayerTrait for BoxedRefMut<'_, LRNLayer>

source§

impl LayerTrait for BoxedRefMut<'_, LSTMLayer>

source§

impl LayerTrait for BoxedRefMut<'_, Layer>

source§

impl LayerTrait for BoxedRefMut<'_, LayerNormLayer>

source§

impl LayerTrait for BoxedRefMut<'_, LogLayer>

source§

impl LayerTrait for BoxedRefMut<'_, MVNLayer>

source§

impl LayerTrait for BoxedRefMut<'_, MatMulLayer>

source§

impl LayerTrait for BoxedRefMut<'_, MaxUnpoolLayer>

source§

impl LayerTrait for BoxedRefMut<'_, MishLayer>

source§

impl LayerTrait for BoxedRefMut<'_, NaryEltwiseLayer>

source§

impl LayerTrait for BoxedRefMut<'_, NormalizeBBoxLayer>

source§

impl LayerTrait for BoxedRefMut<'_, NotLayer>

source§

impl LayerTrait for BoxedRefMut<'_, PaddingLayer>

source§

impl LayerTrait for BoxedRefMut<'_, PermuteLayer>

source§

impl LayerTrait for BoxedRefMut<'_, PoolingLayer>

source§

impl LayerTrait for BoxedRefMut<'_, PoolingLayerInt8>

source§

impl LayerTrait for BoxedRefMut<'_, PowerLayer>

source§

impl LayerTrait for BoxedRefMut<'_, PriorBoxLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ProposalLayer>

source§

impl LayerTrait for BoxedRefMut<'_, QuantizeLayer>

source§

impl LayerTrait for BoxedRefMut<'_, RNNLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ReLU6Layer>

source§

impl LayerTrait for BoxedRefMut<'_, ReLULayer>

source§

impl LayerTrait for BoxedRefMut<'_, ReciprocalLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ReduceLayer>

source§

impl LayerTrait for BoxedRefMut<'_, RegionLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ReorgLayer>

source§

impl LayerTrait for BoxedRefMut<'_, RequantizeLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ReshapeLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ResizeLayer>

source§

impl LayerTrait for BoxedRefMut<'_, RoundLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ScaleLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ScaleLayerInt8>

source§

impl LayerTrait for BoxedRefMut<'_, ScatterLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ScatterNDLayer>

source§

impl LayerTrait for BoxedRefMut<'_, SeluLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ShiftLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ShiftLayerInt8>

source§

impl LayerTrait for BoxedRefMut<'_, ShrinkLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ShuffleChannelLayer>

source§

impl LayerTrait for BoxedRefMut<'_, SigmoidLayer>

source§

impl LayerTrait for BoxedRefMut<'_, SignLayer>

source§

impl LayerTrait for BoxedRefMut<'_, SinLayer>

source§

impl LayerTrait for BoxedRefMut<'_, SinhLayer>

source§

impl LayerTrait for BoxedRefMut<'_, SliceLayer>

source§

impl LayerTrait for BoxedRefMut<'_, SoftmaxLayer>

source§

impl LayerTrait for BoxedRefMut<'_, SoftmaxLayerInt8>

source§

impl LayerTrait for BoxedRefMut<'_, SoftplusLayer>

source§

impl LayerTrait for BoxedRefMut<'_, SoftsignLayer>

source§

impl LayerTrait for BoxedRefMut<'_, SplitLayer>

source§

impl LayerTrait for BoxedRefMut<'_, SqrtLayer>

source§

impl LayerTrait for BoxedRefMut<'_, SwishLayer>

source§

impl LayerTrait for BoxedRefMut<'_, TanHLayer>

source§

impl LayerTrait for BoxedRefMut<'_, TanLayer>

source§

impl LayerTrait for BoxedRefMut<'_, ThresholdedReluLayer>

source§

impl LayerTrait for BoxedRefMut<'_, TileLayer>

source§

impl LayerTrait for Ptr<AbsLayer>

source§

impl LayerTrait for Ptr<AccumLayer>

source§

impl LayerTrait for Ptr<AcosLayer>

source§

impl LayerTrait for Ptr<AcoshLayer>

source§

impl LayerTrait for Ptr<ActivationLayer>

source§

impl LayerTrait for Ptr<ActivationLayerInt8>

source§

impl LayerTrait for Ptr<ArgLayer>

source§

impl LayerTrait for Ptr<AsinLayer>

source§

impl LayerTrait for Ptr<AsinhLayer>

source§

impl LayerTrait for Ptr<AtanLayer>

source§

impl LayerTrait for Ptr<AtanhLayer>

source§

impl LayerTrait for Ptr<AttentionLayer>

source§

impl LayerTrait for Ptr<BNLLLayer>

source§

impl LayerTrait for Ptr<BaseConvolutionLayer>

source§

impl LayerTrait for Ptr<BatchNormLayer>

source§

impl LayerTrait for Ptr<BatchNormLayerInt8>

source§

impl LayerTrait for Ptr<BlankLayer>

source§

impl LayerTrait for Ptr<CeilLayer>

source§

impl LayerTrait for Ptr<CeluLayer>

source§

impl LayerTrait for Ptr<ChannelsPReLULayer>

source§

impl LayerTrait for Ptr<CompareLayer>

source§

impl LayerTrait for Ptr<ConcatLayer>

source§

impl LayerTrait for Ptr<ConstLayer>

source§

impl LayerTrait for Ptr<ConvolutionLayer>

source§

impl LayerTrait for Ptr<ConvolutionLayerInt8>

source§

impl LayerTrait for Ptr<CorrelationLayer>

source§

impl LayerTrait for Ptr<CosLayer>

source§

impl LayerTrait for Ptr<CoshLayer>

source§

impl LayerTrait for Ptr<CropAndResizeLayer>

source§

impl LayerTrait for Ptr<CropLayer>

source§

impl LayerTrait for Ptr<CumSumLayer>

source§

impl LayerTrait for Ptr<DataAugmentationLayer>

source§

impl LayerTrait for Ptr<DeconvolutionLayer>

source§

impl LayerTrait for Ptr<DequantizeLayer>

source§

impl LayerTrait for Ptr<DetectionOutputLayer>

source§

impl LayerTrait for Ptr<ELULayer>

source§

impl LayerTrait for Ptr<EinsumLayer>

source§

impl LayerTrait for Ptr<EltwiseLayer>

source§

impl LayerTrait for Ptr<EltwiseLayerInt8>

source§

impl LayerTrait for Ptr<ErfLayer>

source§

impl LayerTrait for Ptr<ExpLayer>

source§

impl LayerTrait for Ptr<ExpandLayer>

source§

impl LayerTrait for Ptr<FlattenLayer>

source§

impl LayerTrait for Ptr<FloorLayer>

source§

impl LayerTrait for Ptr<FlowWarpLayer>

source§

impl LayerTrait for Ptr<GRULayer>

source§

impl LayerTrait for Ptr<GatherElementsLayer>

source§

impl LayerTrait for Ptr<GatherLayer>

source§

impl LayerTrait for Ptr<GeluApproximationLayer>

source§

impl LayerTrait for Ptr<GeluLayer>

source§

impl LayerTrait for Ptr<GemmLayer>

source§

impl LayerTrait for Ptr<GroupNormLayer>

source§

impl LayerTrait for Ptr<HardSigmoidLayer>

source§

impl LayerTrait for Ptr<HardSwishLayer>

source§

impl LayerTrait for Ptr<InnerProductLayer>

source§

impl LayerTrait for Ptr<InnerProductLayerInt8>

source§

impl LayerTrait for Ptr<InstanceNormLayer>

source§

impl LayerTrait for Ptr<InterpLayer>

source§

impl LayerTrait for Ptr<LRNLayer>

source§

impl LayerTrait for Ptr<LSTMLayer>

source§

impl LayerTrait for Ptr<Layer>

source§

impl LayerTrait for Ptr<LayerNormLayer>

source§

impl LayerTrait for Ptr<LogLayer>

source§

impl LayerTrait for Ptr<MVNLayer>

source§

impl LayerTrait for Ptr<MatMulLayer>

source§

impl LayerTrait for Ptr<MaxUnpoolLayer>

source§

impl LayerTrait for Ptr<MishLayer>

source§

impl LayerTrait for Ptr<NaryEltwiseLayer>

source§

impl LayerTrait for Ptr<NormalizeBBoxLayer>

source§

impl LayerTrait for Ptr<NotLayer>

source§

impl LayerTrait for Ptr<PaddingLayer>

source§

impl LayerTrait for Ptr<PermuteLayer>

source§

impl LayerTrait for Ptr<PoolingLayer>

source§

impl LayerTrait for Ptr<PoolingLayerInt8>

source§

impl LayerTrait for Ptr<PowerLayer>

source§

impl LayerTrait for Ptr<PriorBoxLayer>

source§

impl LayerTrait for Ptr<ProposalLayer>

source§

impl LayerTrait for Ptr<QuantizeLayer>

source§

impl LayerTrait for Ptr<RNNLayer>

source§

impl LayerTrait for Ptr<ReLU6Layer>

source§

impl LayerTrait for Ptr<ReLULayer>

source§

impl LayerTrait for Ptr<ReciprocalLayer>

source§

impl LayerTrait for Ptr<ReduceLayer>

source§

impl LayerTrait for Ptr<RegionLayer>

source§

impl LayerTrait for Ptr<ReorgLayer>

source§

impl LayerTrait for Ptr<RequantizeLayer>

source§

impl LayerTrait for Ptr<ReshapeLayer>

source§

impl LayerTrait for Ptr<ResizeLayer>

source§

impl LayerTrait for Ptr<RoundLayer>

source§

impl LayerTrait for Ptr<ScaleLayer>

source§

impl LayerTrait for Ptr<ScaleLayerInt8>

source§

impl LayerTrait for Ptr<ScatterLayer>

source§

impl LayerTrait for Ptr<ScatterNDLayer>

source§

impl LayerTrait for Ptr<SeluLayer>

source§

impl LayerTrait for Ptr<ShiftLayer>

source§

impl LayerTrait for Ptr<ShiftLayerInt8>

source§

impl LayerTrait for Ptr<ShrinkLayer>

source§

impl LayerTrait for Ptr<ShuffleChannelLayer>

source§

impl LayerTrait for Ptr<SigmoidLayer>

source§

impl LayerTrait for Ptr<SignLayer>

source§

impl LayerTrait for Ptr<SinLayer>

source§

impl LayerTrait for Ptr<SinhLayer>

source§

impl LayerTrait for Ptr<SliceLayer>

source§

impl LayerTrait for Ptr<SoftmaxLayer>

source§

impl LayerTrait for Ptr<SoftmaxLayerInt8>

source§

impl LayerTrait for Ptr<SoftplusLayer>

source§

impl LayerTrait for Ptr<SoftsignLayer>

source§

impl LayerTrait for Ptr<SplitLayer>

source§

impl LayerTrait for Ptr<SqrtLayer>

source§

impl LayerTrait for Ptr<SwishLayer>

source§

impl LayerTrait for Ptr<TanHLayer>

source§

impl LayerTrait for Ptr<TanLayer>

source§

impl LayerTrait for Ptr<ThresholdedReluLayer>

source§

impl LayerTrait for Ptr<TileLayer>

source§

impl LayerTrait for AbsLayer

source§

impl LayerTrait for AccumLayer

source§

impl LayerTrait for AcosLayer

source§

impl LayerTrait for AcoshLayer

source§

impl LayerTrait for ActivationLayer

source§

impl LayerTrait for ActivationLayerInt8

source§

impl LayerTrait for ArgLayer

source§

impl LayerTrait for AsinLayer

source§

impl LayerTrait for AsinhLayer

source§

impl LayerTrait for AtanLayer

source§

impl LayerTrait for AtanhLayer

source§

impl LayerTrait for AttentionLayer

source§

impl LayerTrait for BNLLLayer

source§

impl LayerTrait for BaseConvolutionLayer

source§

impl LayerTrait for BatchNormLayer

source§

impl LayerTrait for BatchNormLayerInt8

source§

impl LayerTrait for BlankLayer

source§

impl LayerTrait for CeilLayer

source§

impl LayerTrait for CeluLayer

source§

impl LayerTrait for ChannelsPReLULayer

source§

impl LayerTrait for CompareLayer

source§

impl LayerTrait for ConcatLayer

source§

impl LayerTrait for ConstLayer

source§

impl LayerTrait for ConvolutionLayer

source§

impl LayerTrait for ConvolutionLayerInt8

source§

impl LayerTrait for CorrelationLayer

source§

impl LayerTrait for CosLayer

source§

impl LayerTrait for CoshLayer

source§

impl LayerTrait for CropAndResizeLayer

source§

impl LayerTrait for CropLayer

source§

impl LayerTrait for CumSumLayer

source§

impl LayerTrait for DataAugmentationLayer

source§

impl LayerTrait for DeconvolutionLayer

source§

impl LayerTrait for DequantizeLayer

source§

impl LayerTrait for DetectionOutputLayer

source§

impl LayerTrait for ELULayer

source§

impl LayerTrait for EinsumLayer

source§

impl LayerTrait for EltwiseLayer

source§

impl LayerTrait for EltwiseLayerInt8

source§

impl LayerTrait for ErfLayer

source§

impl LayerTrait for ExpLayer

source§

impl LayerTrait for ExpandLayer

source§

impl LayerTrait for FlattenLayer

source§

impl LayerTrait for FloorLayer

source§

impl LayerTrait for FlowWarpLayer

source§

impl LayerTrait for GRULayer

source§

impl LayerTrait for GatherElementsLayer

source§

impl LayerTrait for GatherLayer

source§

impl LayerTrait for GeluApproximationLayer

source§

impl LayerTrait for GeluLayer

source§

impl LayerTrait for GemmLayer

source§

impl LayerTrait for GroupNormLayer

source§

impl LayerTrait for HardSigmoidLayer

source§

impl LayerTrait for HardSwishLayer

source§

impl LayerTrait for InnerProductLayer

source§

impl LayerTrait for InnerProductLayerInt8

source§

impl LayerTrait for InstanceNormLayer

source§

impl LayerTrait for InterpLayer

source§

impl LayerTrait for LRNLayer

source§

impl LayerTrait for LSTMLayer

source§

impl LayerTrait for Layer

source§

impl LayerTrait for LayerNormLayer

source§

impl LayerTrait for LogLayer

source§

impl LayerTrait for MVNLayer

source§

impl LayerTrait for MatMulLayer

source§

impl LayerTrait for MaxUnpoolLayer

source§

impl LayerTrait for MishLayer

source§

impl LayerTrait for NaryEltwiseLayer

source§

impl LayerTrait for NormalizeBBoxLayer

source§

impl LayerTrait for NotLayer

source§

impl LayerTrait for PaddingLayer

source§

impl LayerTrait for PermuteLayer

source§

impl LayerTrait for PoolingLayer

source§

impl LayerTrait for PoolingLayerInt8

source§

impl LayerTrait for PowerLayer

source§

impl LayerTrait for PriorBoxLayer

source§

impl LayerTrait for ProposalLayer

source§

impl LayerTrait for QuantizeLayer

source§

impl LayerTrait for RNNLayer

source§

impl LayerTrait for ReLU6Layer

source§

impl LayerTrait for ReLULayer

source§

impl LayerTrait for ReciprocalLayer

source§

impl LayerTrait for ReduceLayer

source§

impl LayerTrait for RegionLayer

source§

impl LayerTrait for ReorgLayer

source§

impl LayerTrait for RequantizeLayer

source§

impl LayerTrait for ReshapeLayer

source§

impl LayerTrait for ResizeLayer

source§

impl LayerTrait for RoundLayer

source§

impl LayerTrait for ScaleLayer

source§

impl LayerTrait for ScaleLayerInt8

source§

impl LayerTrait for ScatterLayer

source§

impl LayerTrait for ScatterNDLayer

source§

impl LayerTrait for SeluLayer

source§

impl LayerTrait for ShiftLayer

source§

impl LayerTrait for ShiftLayerInt8

source§

impl LayerTrait for ShrinkLayer

source§

impl LayerTrait for ShuffleChannelLayer

source§

impl LayerTrait for SigmoidLayer

source§

impl LayerTrait for SignLayer

source§

impl LayerTrait for SinLayer

source§

impl LayerTrait for SinhLayer

source§

impl LayerTrait for SliceLayer

source§

impl LayerTrait for SoftmaxLayer

source§

impl LayerTrait for SoftmaxLayerInt8

source§

impl LayerTrait for SoftplusLayer

source§

impl LayerTrait for SoftsignLayer

source§

impl LayerTrait for SplitLayer

source§

impl LayerTrait for SqrtLayer

source§

impl LayerTrait for SwishLayer

source§

impl LayerTrait for TanHLayer

source§

impl LayerTrait for TanLayer

source§

impl LayerTrait for ThresholdedReluLayer

source§

impl LayerTrait for TileLayer