tensorflow:: אופס:: PreventGradient

#include <array_ops.h>

הפעלת זהות שמפעילה שגיאה אם ​​מתבקש שיפוע.

סיכום

כאשר הוא מבוצע בגרף, הפעולה הזו מוציאה את טנסור הקלט שלו כפי שהוא.

בעת בניית אופציות לחישוב שיפועים, מערכת שיפוע TensorFlow תחזיר שגיאה בעת ניסיון לחפש את השיפוע של אופציה זו, מכיוון שאף שיפוע לא חייב להיות רשום עבור פונקציה זו. אופציה זו קיימת כדי למנוע מבאגים עדינים להחזיר בשקט שיפועים לא מיושמים במקרים מסוימים בפינה.

טיעונים:

  • scope: אובייקט Scope
  • קלט: כל טנסור.

מאפיינים אופציונליים (ראה 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

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

PreventGradient

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

צוֹמֶת

::tensorflow::Node * node() const 

מפעיל::tensorflow::קלט

 operator::tensorflow::Input() const 

אופרטור::tensorflow::פלט

 operator::tensorflow::Output() const 

פונקציות סטטיות ציבוריות

הוֹדָעָה

Attrs Message(
  StringPiece x
)