tensorflow:: אופס:: דליית
#include <math_ops.h>
מרכזת 'קלט' בהתבסס על 'גבולות'.
תַקצִיר
לדוגמה, אם התשומות הן גבולות = [0, 10, 100] קלט = [[-5, 10000] [150, 10] [5, 100]]
אז הפלט יהיה פלט = [[0, 3] [3, 2] [1, 3]]
טיעונים:
- scope: אובייקט Scope
- קלט: כל צורה של Tensor מכילה עם סוג int או float.
- גבולות: רשימה ממוינת של מצופים נותנת את גבול הדליים.
החזרות:
-
Output
: אותה צורה עם 'קלט', כל ערך של קלט הוחלף באינדקס דלי.
(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