Compute Library
 21.08
EltwiseLayerDescriptor Struct Reference

Elementwise layer descriptor. More...

#include <LayerDescriptors.h>

Collaboration diagram for EltwiseLayerDescriptor:
[legend]

Public Member Functions

 EltwiseLayerDescriptor (EltwiseOperation op, QuantizationInfo out_quant_info=QuantizationInfo(), ConvertPolicy c_policy=ConvertPolicy::SATURATE, RoundingPolicy r_policy=RoundingPolicy::TO_ZERO, ActivationLayerInfo fused_activation=ActivationLayerInfo())
 Constructor. More...
 

Data Fields

EltwiseOperation op
 Element-wise operation to perform. More...
 
QuantizationInfo out_quant_info
 Output quantization information. More...
 
ConvertPolicy c_policy
 Convert policy. More...
 
RoundingPolicy r_policy
 Rounding policy. More...
 
ActivationLayerInfo fused_activation
 Fused activation info. More...
 

Detailed Description

Elementwise layer descriptor.

Definition at line 69 of file LayerDescriptors.h.

Constructor & Destructor Documentation

◆ EltwiseLayerDescriptor()

Constructor.

Parameters
[in]opElement-wise operation to perform
[in]out_quant_info(Optional) Output quantization information. Defaults to empty QuantizationInfo
[in]c_policy(Optional) Convert policy used for the operation. Defaults to ConvertPolicy::SATURATE
[in]r_policy(Optional) Rounding policy used for the operation. Defaults to RoundingPolicy::TO_ZERO
[in]fused_activation(Optional) Fused activation information. Defaults to empty (identity) ActivationLayerInfo

Definition at line 79 of file LayerDescriptors.h.

82  {
83  }
ActivationLayerInfo fused_activation
Fused activation info.
QuantizationInfo out_quant_info
Output quantization information.
EltwiseOperation op
Element-wise operation to perform.

Field Documentation

◆ c_policy

ConvertPolicy c_policy

Convert policy.

Definition at line 87 of file LayerDescriptors.h.

Referenced by EltwiseLayerNode::convert_policy().

◆ fused_activation

ActivationLayerInfo fused_activation

Fused activation info.

Definition at line 89 of file LayerDescriptors.h.

Referenced by EltwiseLayerNode::fused_activation(), and EltwiseLayerNode::set_fused_activation().

◆ op

Element-wise operation to perform.

Definition at line 85 of file LayerDescriptors.h.

Referenced by EltwiseLayerNode::eltwise_operation().

◆ out_quant_info

QuantizationInfo out_quant_info

Output quantization information.

Definition at line 86 of file LayerDescriptors.h.

Referenced by EltwiseLayerNode::configure_output(), and EltwiseLayerNode::output_quant_info().

◆ r_policy

RoundingPolicy r_policy

Rounding policy.

Definition at line 88 of file LayerDescriptors.h.

Referenced by EltwiseLayerNode::rounding_policy().


The documentation for this struct was generated from the following file: