This fixes an issue about mindspore process cannot exit when calling python...
This fixes an issue about mindspore process cannot exit when calling python api op_select_format failed in select kernel steps. Previously function op_select_format and check_supported raise an exception directly on the tbe_process python side, but we don't deal with the exception, and raise an exeception on c++ side to frontend ME, that will cause some conflict when recycle resource on ME and tbe_process python interpreter. This changes adding try...catch in function op_select_format and check_supported on the python side, and return the Exception string to c++ side, so that we can raise an exception to frontend ME and ME will deal with resouce clearning and exit.
Showing
想要评论请 注册 或 登录