Skip to content

Latest commit

 

History

History
107 lines (85 loc) · 3.6 KB

ns-directml-dml_activation_softplus_operator_desc.md

File metadata and controls

107 lines (85 loc) · 3.6 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:directml.DML_ACTIVATION_SOFTPLUS_OPERATOR_DESC
DML_ACTIVATION_SOFTPLUS_OPERATOR_DESC
Performs a parametric softplus activation function on every element in *InputTensor*, placing the result into the corresponding element of *OutputTensor*. (DML_ACTIVATION_SOFTPLUS_OPERATOR_DESC)
DML_ACTIVATION_SOFTPLUS_OPERATOR_DESC
DML_ACTIVATION_SOFTPLUS_OPERATOR_DESC structure
direct3d12.dml_activation_softplus_operator_desc
directml/DML_ACTIVATION_SOFTPLUS_OPERATOR_DESC
direct3d12\dml_activation_softplus_operator_desc.htm
directml
56841C42-3C86-4118-B959-A77E616B7EC3
10/28/2020
DML_ACTIVATION_SOFTPLUS_OPERATOR_DESC, DML_ACTIVATION_SOFTPLUS_OPERATOR_DESC structure, direct3d12.dml_activation_softplus_operator_desc, directml/DML_ACTIVATION_SOFTPLUS_OPERATOR_DESC
directml.h
Windows
Windows
19H1
DML_ACTIVATION_SOFTPLUS_OPERATOR_DESC
directml/DML_ACTIVATION_SOFTPLUS_OPERATOR_DESC
c++
APIRef
kbSyntax
HeaderDef
DirectML.h
DML_ACTIVATION_SOFTPLUS_OPERATOR_DESC

-description

Performs a parametric softplus activation function on every element in InputTensor, placing the result into the corresponding element of OutputTensor.

f(x) = ln(1 + exp(Steepness * x)) / Steepness

Where exp(x) is the natural exponentiation function and ln(x) is the natural logarithm.

This operator supports in-place execution, meaning that the output tensor is permitted to alias InputTensor during binding.

-struct-fields

-field InputTensor

Type: const DML_TENSOR_DESC*

The input tensor to read from.

-field OutputTensor

Type: const DML_TENSOR_DESC*

The Steepness coefficient. A typical default for this value is 1.0. This value cannot be less than 1.

-field Steepness

Type: FLOAT

The steepness value.

Availability

This operator was introduced in DML_FEATURE_LEVEL_1_0.

Tensor constraints

InputTensor and OutputTensor must have the same DataType, DimensionCount, and Sizes.

Tensor support

DML_FEATURE_LEVEL_3_0 and above

Tensor Kind Supported dimension counts Supported data types
InputTensor Input 1 to 8 FLOAT32, FLOAT16
OutputTensor Output 1 to 8 FLOAT32, FLOAT16

DML_FEATURE_LEVEL_2_0 and above

Tensor Kind Supported dimension counts Supported data types
InputTensor Input 4 to 5 FLOAT32, FLOAT16
OutputTensor Output 4 to 5 FLOAT32, FLOAT16

DML_FEATURE_LEVEL_1_0 and above

Tensor Kind Supported dimension counts Supported data types
InputTensor Input 4 FLOAT32, FLOAT16
OutputTensor Output 4 FLOAT32, FLOAT16

-see-also

DML_ACTIVATION_PARAMETRIC_SOFTPLUS_OPERATOR_DESC structure