unregister_external_allocator

Function Usage

Destroys the allocator registered by the user based on the stream. This applies to the scenario where the user's memory pool is used.

Prototype

1
unregister_external_allocator(stream: int) -> None

Parameters

Parameter

Input/Output

Description

stream

Input

Graph ID

Returns

None

Restrictions

  • If stream is not an integer, TypeError is thrown.
  • If the destruction fails, RuntimeError is thrown.
  • For more restrictions, see Restrictions.