UnregisterExternalAllocator
Description
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
Status UnregisterExternalAllocator(const void *const stream) const;
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
stream |
Input |
Specifies the stream on which the allocator to be destroyed is located. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
Status |
SUCCESS: The setting is successful. FAILED: The setting fails. |
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.
Parent topic: Graph Running APIs