tft_register_exit_handler
Function
Registers the custom exit method with MindIO TFT.
Currently, the exit callback can be registered only with the MindSpore framework. You need to ensure the security of the callback. For other frameworks, MindIO TFT is responsible for exiting.
Format
mindio_ttp.framework_ttp.tft_register_exit_handler(func: Callable, ctx = None)
Parameters
Parameter |
Mandatory/Optional |
Description |
Value |
|---|---|---|---|
func |
Mandatory |
Callback function that is exited. |
The callback function cannot be empty. For details about the input parameters of the callback function, see Table 1. The callback function has no return value. If the execution fails, an exception is thrown. |
ctx |
Optional |
Callback function context. |
This parameter is left empty by default. |
Return Value
No return value. If an error occurs, an error log is recorded and an exception is thrown.
Parent topic: API Reference