IDMLOperatorInitializer::Reset method (directml.h)

Resets the initializer to handle initialization of a new set of operators.

You may use an initializer only to initialize a fixed set of operators, which are provided either during creation (IDMLDevice::CreateOperatorInitializer), or when the initializer is reset. Resetting the initializer allows your application to reuse an existing initializer object to initialize a new set of operators.

You must not call Reset until all outstanding work using the initializer has completed execution on the GPU.

This method is not thread-safe.

Syntax

HRESULT Reset(
                 UINT                 operatorCount,
  [in, optional] IDMLCompiledOperator * const *operators
);

Parameters

operatorCount

Type: UINT

This parameter determines the number of elements in the array passed in the operators parameter.

[in, optional] operators

Type: IDMLCompiledOperator*

An optional pointer to a constant array of IDMLCompiledOperator pointers containing the operators that the initializer should initialize.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Target Platform Windows
Header directml.h
Library DirectML.lib
DLL DirectML.dll

See also

IDMLOperatorInitializer