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
. הערך המקסימלי שניתן לגזול לפיו.
החזרות:
בנאים והורסים | |
---|---|
ClipByValue (const :: tensorflow::Scope & scope, :: tensorflow::Input t, :: tensorflow::Input clip_value_min, :: tensorflow::Input clip_value_max) |
תפקידים ציבוריים | |
---|---|
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