Abort


tensorflow C++ API

tensorflow::ops::Abort

Raise a exception to abort the process when called.


Summary

If exit_without_error is true, the process will exit normally, otherwise it will exit with a SIGABORT signal.

Returns nothing but an exception.

Arguments:

Optional attributes (see Attrs):

  • error_msg: A string which is the message associated with the exception.

Returns:


Abort block

Source link :https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_control_flow_ops.cpp

Argument:

  • Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
  • Abort::Attr attrs: 2 attr option,
    • error_msg_: A string which is the message associated with the exception.
    • exit_without_error_: A boolean value. If true exit without error. false will exit with an error message.

Return:

  • Operation operation : the created Operation

Using Method

※ 이 함수를 사용하면 텐서플로우 dll만 종료되는 것이 아닌 텐서플로우 dll을 실행하고 있던 프로그램까지 종료 명령이 가게되므로 텐서플로우만 단독으로 사용할 때 쓰도록 해야한다.

results matching ""

    No results matching ""