# DML_ELEMENT_WISE_IDENTITY_OPERATOR_DESC structure

Describes a DirectML generic operator that performs the element-wise identity function f(x) = x * scale + bias. The operator effectively copies its input tensor to the output, while applying optional scale and bias terms. The data types and sizes of the input and output tensors must be the same.

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

## Syntax

```
struct DML_ELEMENT_WISE_IDENTITY_OPERATOR_DESC {
const DML_TENSOR_DESC *InputTensor;
const DML_TENSOR_DESC *OutputTensor;
const DML_SCALE_BIAS *ScaleBias;
};
```

## Members

`InputTensor`

Type: **const DML_TENSOR_DESC***

A pointer to a constant DML_TENSOR_DESC containing the description of the tensor to read from.

`OutputTensor`

Type: **const DML_TENSOR_DESC***

A pointer to a constant DML_TENSOR_DESC containing the description of the tensor to write the results to. This operator supports in-place execution. That is, the supplied output tensor may be the same as the supplied input tensor.

`ScaleBias`

Type: **const DML_SCALE_BIAS***

An optional pointer to a constant DML_SCALE_BIAS containing 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 element before this topic's operator is applied.

## Requirements

Header |
directml.h |