DML_ELEMENT_WISE_MULTIPLY_OPERATOR_DESC structure

Describes a DirectML math operator that performs the function of multiplying every element in ATensor by its corresponding element in BTensor, f(a, b) = a * b.

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

Syntax

struct DML_ELEMENT_WISE_MULTIPLY_OPERATOR_DESC {
  const DML_TENSOR_DESC *ATensor;
  const DML_TENSOR_DESC *BTensor;
  const DML_TENSOR_DESC *OutputTensor;
};

Members

ATensor

Type: const DML_TENSOR_DESC*

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

BTensor

Type: const DML_TENSOR_DESC*

A pointer to a constant DML_TENSOR_DESC containing the description of the B 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.

Requirements

   
Header directml.h