tensorflow:: אופס:: ClipByValue

#include <math_ops.h>

חותך ערכי טנסור למינימום ומקסימום שצוינו.

סיכום

בהינתן טנסור t , פעולה זו מחזירה טנסור מאותו סוג וצורה כמו t עם ערכיו חתוכים ל- clip_value_min ו- clip_value_max . כל ערכים הנמוכים מ- clip_value_min מוגדרים ל- clip_value_min . כל הערכים הגדולים מ- clip_value_max מוגדרים ל- clip_value_max .

טיעונים:

  • scope: אובייקט Scope
  • t: Tensor .
  • clip_value_min: Tensor 0-D (סקלארי), או Tensor עם אותה צורה כמו t . הערך המינימלי שיש לגזול לפיו.
  • clip_value_max: Tensor 0-D (סקלארי), או Tensor עם אותה צורה כמו t . הערך המקסימלי שניתן לגזול לפיו.

החזרות:

  • Output : Tensor קצוץ עם אותה צורה כמו קלט 't'.

בנאים והורסים

ClipByValue (const :: tensorflow::Scope & scope, :: tensorflow::Input t, :: tensorflow::Input clip_value_min, :: tensorflow::Input clip_value_max)

תכונות ציבוריות

operation
output

תפקידים ציבוריים

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

תכונות ציבוריות

מבצע

Operation operation

תְפוּקָה

::tensorflow::Output output

תפקידים ציבוריים

ClipByValue

 ClipByValue(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input t,
  ::tensorflow::Input clip_value_min,
  ::tensorflow::Input clip_value_max
)

צוֹמֶת

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const