tensorflow::ops::PreventGradient

#include <array_ops.h>

عملية هوية تؤدي إلى حدوث خطأ إذا تم طلب تدرج لوني.

ملخص

عند تنفيذ هذه العملية في رسم بياني، فإنها تُخرج موتر الإدخال الخاص بها كما هو.

عند إنشاء عمليات لحساب التدرجات، سيعيد نظام تدرج TensorFlow خطأً عند محاولة البحث عن تدرج هذه العملية، لأنه لا يجب تسجيل أي تدرج لهذه الدالة. وُجدت هذه العملية لمنع الأخطاء الخفية من إرجاع تدرجات غير مُنفذة في بعض الحالات النادرة.

الحجج:

  • النطاق: كائن النطاق
  • المدخلات: أي موتر.

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

  • الرسالة: ستُطبع في الخطأ عندما يحاول أي شخص التمييز بين هذه العملية.

المرتجعات:

  • Output : نفس موتر الإدخال.

البناة والمدمرون

PreventGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input input)
PreventGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const PreventGradient::Attrs & attrs)

السمات العامة

operation
output

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

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

الدوال الثابتة العامة

Message (StringPiece x)

الهياكل

tensorflow:: ops:: PreventGradient:: Attrs

مُعدِّلات السمات الاختيارية لـ PreventGradient .

السمات العامة

عملية

Operation operation

المخرجات

::tensorflow::Output output

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

منع التدرج

 PreventGradient(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input
)

منع التدرج

 PreventGradient(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const PreventGradient::Attrs & attrs
)

العقدة

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

الدوال الثابتة العامة

رسالة

Attrs Message(
  StringPiece x
)