tensorflow:: ops:: דליזציה

#include <math_ops.h>

מחלק 'קלט' לפי 'גבולות'.

תַקצִיר

לדוגמה, אם הקלטים הם boundaries = [0, 10, 100] input = [[-5, 10000] [150, 10] [5, 100]]

אז הפלט יהיה פלט = [[0, 3] [3, 2] [1, 3]]

טיעונים:

  • היקף: אובייקט היקף
  • קלט: כל צורה של טנזור מכילה את הסוג int או float.
  • גבולות: רשימה ממוינת של צפים נותנת את גבול הדליים.

החזרות:

  • Output : אותה צורה עם 'input', כל ערך של קלט מוחלף באינדקס דלי.

(numpy) שווה ערך ל- np.digitize.

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

Bucketize (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const gtl::ArraySlice< float > & boundaries)

מאפיינים ציבוריים

operation
output

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

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

מאפיינים ציבוריים

מִבצָע

Operation operation

תְפוּקָה

::tensorflow::Output output

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

דליזציה

 Bucketize(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const gtl::ArraySlice< float > & boundaries
)

צוֹמֶת

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const