DeterministicLevel

Function Usage

Sets the deterministic computing level.

Prototype

1
OpTilingContextBuilder &DeterministicLevel(int32_t deterministic_level)

Parameters

Parameter

Input/Output

Description

deterministic_level

Input

Deterministic computing level. 0: non-deterministic; 1: deterministic; 2: strong consistency.

Returns

A reference to the OpTilingContextBuilder object. It is used for chaining method calls.

Constraints

  • This API must be called before the Build method call. Otherwise, the constructed TilingContext will contain undefined data.
  • The caller has the memory ownership of the void* parameter passed through a pointer. They must ensure that the pointer is valid throughout the lifecycle of the ContextHolder object.