tensorflow:: ops:: Pad
#include <array_ops.h>ממלא טנזור באפסים.
תַקצִיר
פעולה זו ממלאת input באפסים בהתאם paddings שתציין. paddings הוא טנזור שלם עם צורה [Dn, 2] , כאשר n הוא הדרגה של input . עבור כל ממד D של input , paddings[D, 0] מציין כמה אפסים להוסיף לפני תוכן input באותו ממד, ו- paddings[D, 1] מציין כמה אפסים להוסיף אחרי תוכן input באותו ממד.
הגודל המרופד של כל ממד D של הפלט הוא:
paddings(D, 0) + input.dim_size(D) + paddings(D, 1)
לְדוּגמָה:
# 't' is [[1, 1], [2, 2]]
# 'paddings' is [[1, 1], [2, 2]]
# rank of 't' is 2
pad(t, paddings) ==> [[0, 0, 0, 0, 0, 0]
[0, 0, 1, 1, 0, 0]
[0, 0, 2, 2, 0, 0]
[0, 0, 0, 0, 0, 0]]טיעונים:
- היקף: אובייקט היקף
החזרות:
-
Output: טנזור הפלט.
בנאים והורסים | |
|---|---|
Pad (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input paddings) |
מאפיינים ציבוריים | |
|---|---|
operation | |
output | |
תפקידים ציבוריים | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
מאפיינים ציבוריים
מִבצָע
Operation operation
תְפוּקָה
::tensorflow::Output output
תפקידים ציבוריים
כָּרִית
Pad( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input paddings )
צוֹמֶת
::tensorflow::Node * node() const
אופרטור::tensorflow::קלט
operator::tensorflow::Input() const
אופרטור::tensorflow::פלט
operator::tensorflow::Output() const
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2026-11-05 (שעון UTC).
[null,null,["עדכון אחרון: 2026-11-05 (שעון UTC)."],[],[]]