UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | 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_ELEMENT_WISE_POW_OPERATOR_DESC |
DML_ELEMENT_WISE_POW_OPERATOR_DESC |
Computes each element of *InputTensor* raised to the power of the corresponding element of *ExponentTensor*, placing the result into the corresponding element of *OutputTensor*. |
|
direct3d12\dml_element_wise_pow_operator_desc.htm |
directml |
72AF58C4-F651-4439-8963-FA64D75A63C3 |
10/30/2020 |
directml.h |
Windows |
Windows |
19H1 |
|
|
|
|
|
|
Computes each element of InputTensor raised to the power of the corresponding element of ExponentTensor, placing the result into the corresponding element of OutputTensor.
f(input, exponent) = pow(input, exponent)
Negative bases are supported for exponents with integral values (though datatype can still be float), otherwise this operator returns NaN.
When the input tensor and exponent tensor both have integral data type, this operator guarantees exact results.
This operator supports in-place execution, meaning that OutputTensor is permitted to alias InputTensor during binding.
Type: const DML_TENSOR_DESC*
The tensor containing the input values.
Type: const DML_TENSOR_DESC*
The tensor containing the exponent values.
Type: const DML_TENSOR_DESC*
The output tensor to write the results to.
Type: _Maybenull_ const DML_SCALE_BIAS*
An optional scale and bias to apply to the input. If present, this has the effect of applying the function g(x) = x * scale + bias
to each input element prior to computing this operator.
Until DML_FEATURE_LEVEL_3_0
, ExponentTensor must match the type of InputTensor.
See DML_ELEMENT_WISE_CONSTANT_POW_OPERATOR_DESC for a POW operator that accepts a FLOAT
constant for the exponent.
This operator was introduced in DML_FEATURE_LEVEL_1_0
.
- ExponentTensor, InputTensor, and OutputTensor must have the same DimensionCount and Sizes.
- InputTensor and OutputTensor must have the same DataType.
Tensor | Kind | Supported dimension counts | Supported data types |
---|---|---|---|
InputTensor | Input | 1 to 8 | FLOAT32, FLOAT16, INT32, INT16, INT8, UINT32, UINT16, UINT8 |
ExponentTensor | Input | 1 to 8 | FLOAT32, FLOAT16, INT32, INT16, INT8, UINT32, UINT16, UINT8 |
OutputTensor | Output | 1 to 8 | FLOAT32, FLOAT16, INT32, INT16, INT8, UINT32, UINT16, UINT8 |
Tensor | Kind | Supported dimension counts | Supported data types |
---|---|---|---|
InputTensor | Input | 4 | FLOAT32, FLOAT16 |
ExponentTensor | Input | 4 | FLOAT32, FLOAT16 |
OutputTensor | Output | 4 | FLOAT32, FLOAT16 |