otx.api.usecases.tasks.interfaces.unload_interface#
Unload Interface.
This module contains the interface class for tasks to be notified when the task does not need to be loaded anymore.
Classes
|
Interface to provide unload functionality. |
- class otx.api.usecases.tasks.interfaces.unload_interface.IUnload[source]#
Bases:
object
Interface to provide unload functionality.
This interface can be implemented by a task, if the task wants to be notified when the task is not needed by the pipeline anymore. This allows to clear GPU and system memory resources for example.