تدفق التوتر:: العمليات:: إحباط

#include <control_flow_ops.h>

رفع استثناء لإجهاض العملية عند استدعائها.

ملخص

إذا كانت قيمة "exit_without_error" صحيحة، فسيتم الخروج من العملية بشكل طبيعي، وإلا فسيتم الخروج بإشارة SIGABORT.

لا يُرجع سوى استثناء.

الحجج:

السمات الاختيارية (انظر Attrs ):

  • error_msg: سلسلة تمثل الرسالة المرتبطة بالاستثناء.

عائدات:

البنائين والمدمرين

Abort (const :: tensorflow::Scope & scope)
Abort (const :: tensorflow::Scope & scope, const Abort::Attrs & attrs)

الصفات العامة

operation

الوظائف العامة

operator::tensorflow::Operation () const

وظائف ثابتة العامة

ErrorMsg (StringPiece x)
ExitWithoutError (bool x)

الهياكل

Tensorflow:: ops:: Abort:: Attrs

محددات السمات الاختيارية لـ Abort .

الصفات العامة

عملية

Operation operation

الوظائف العامة

إحباط

 Abort(
  const ::tensorflow::Scope & scope
)

إحباط

 Abort(
  const ::tensorflow::Scope & scope,
  const Abort::Attrs & attrs
)

المشغل::tensorflow::Operation

 operator::tensorflow::Operation() const 

وظائف ثابتة العامة

ErrorMsg

Attrs ErrorMsg(
  StringPiece x
)

خروج بدون خطأ

Attrs ExitWithoutError(
  bool x
)
,

تدفق التوتر:: العمليات:: إحباط

#include <control_flow_ops.h>

رفع استثناء لإجهاض العملية عند استدعائها.

ملخص

إذا كانت قيمة "exit_without_error" صحيحة، فسيتم الخروج من العملية بشكل طبيعي، وإلا فسيتم الخروج بإشارة SIGABORT.

لا يُرجع سوى استثناء.

الحجج:

السمات الاختيارية (انظر Attrs ):

  • error_msg: سلسلة تمثل الرسالة المرتبطة بالاستثناء.

عائدات:

البنائين والمدمرين

Abort (const :: tensorflow::Scope & scope)
Abort (const :: tensorflow::Scope & scope, const Abort::Attrs & attrs)

الصفات العامة

operation

الوظائف العامة

operator::tensorflow::Operation () const

وظائف ثابتة العامة

ErrorMsg (StringPiece x)
ExitWithoutError (bool x)

الهياكل

Tensorflow:: ops:: Abort:: Attrs

محددات السمات الاختيارية لـ Abort .

الصفات العامة

عملية

Operation operation

الوظائف العامة

إحباط

 Abort(
  const ::tensorflow::Scope & scope
)

إحباط

 Abort(
  const ::tensorflow::Scope & scope,
  const Abort::Attrs & attrs
)

المشغل::tensorflow::Operation

 operator::tensorflow::Operation() const 

وظائف ثابتة العامة

ErrorMsg

Attrs ErrorMsg(
  StringPiece x
)

خروج بدون خطأ

Attrs ExitWithoutError(
  bool x
)