DestroyOperation
Description
Destroys an Operation.
Definition
1 | Status DestroyOperation(Operation *operation); |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
operation |
Input |
Operation pointer. |
Returns
Type |
Input/Output |
Description |
|---|---|---|
Status |
Output |
NO_ERROR on success; else failure. |
Restrictions
DestroyOperation must be used together with CreateOperation. First call CreateOperation first and then DestroyOperation.
After the Operation created by calling CreateOperation is used, call DestroyOperation to destroy it. Otherwise, a memory leak occurs.
The parameters of atb/infer_op_params.h and atb/train_op_params.h are supported.
Parent topic: atb/operation.h