aclrtAllocatorUnregister

The Atlas 200/300/500 Inference Product does not support this API.

Description

Deregisters the user-provided Allocator and its callback function, so that the Allocator cannot be used.

Restrictions

  • Before destroying an Allocator, call this API to deregister the Allocator.
  • If the stream to be deregistered does not exist or this API is called for multiple times to deregister the stream, no operation will be performed and a success message is returned.

Prototype

aclError aclrtAllocatorUnregister(aclrtStream stream)

Parameters

Parameter

Input/Output

Description

stream

Input

Stream corresponding to the Allocator.

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.

See Also

For the API call example, see Dynamic Shape Input (Setting the Shape Range).