DML_ELEMENT_WISE_NEGATE_OPERATOR_DESC struttura (directml.h)
Nega ogni elemento di InputTensor, archiviando il risultato nell'elemento corrispondente di OutputTensor.
f(x) = -x
Questo operatore supporta l'esecuzione sul posto, ovvero outputTensor è consentito per alias InputTensor durante l'associazione.
Sintassi
struct DML_ELEMENT_WISE_NEGATE_OPERATOR_DESC {
const DML_TENSOR_DESC *InputTensor;
const DML_TENSOR_DESC *OutputTensor;
};
Members
InputTensor
Tipo: const DML_TENSOR_DESC*
Tensore di input da cui leggere.
OutputTensor
Tipo: const DML_TENSOR_DESC*
Tensore di output in cui scrivere i risultati.
Commenti
Disponibilità
Questo operatore è stato introdotto in DML_FEATURE_LEVEL_5_0.
Vincoli tensor
InputTensor e OutputTensor devono avere lo stesso oggetto DataType, DimensionCount e Sizes.
Supporto di Tensor
Tensore | Tipo | Conteggi delle dimensioni supportate | Tipi di dati supportati |
---|---|---|---|
InputTensor | Input | da 1 a 8 | FLOAT32, FLOAT16, INT64, INT32, INT16, INT8 |
OutputTensor | Output | da 1 a 8 | FLOAT32, FLOAT16, INT64, INT32, INT16, INT8 |
Requisiti
Requisito | Valore |
---|---|
Intestazione | directml.h |