tensorflow:: ops:: Conv2DBackpropInput:: Attrs
#include <nn_ops.h>קובעי מאפיינים אופציונליים עבור Conv2DBackpropInput .
תַקצִיר
מאפיינים ציבוריים | |
|---|---|
data_format_ = "NHWC" | StringPiece |
dilations_ = Default_dilations() | gtl::ArraySlice< int > |
explicit_paddings_ = {} | gtl::ArraySlice< int > |
use_cudnn_on_gpu_ = true | bool |
תפקידים ציבוריים | |
|---|---|
DataFormat (StringPiece x) | TF_MUST_USE_RESULT Attrs ציין את פורמט הנתונים של נתוני הקלט והפלט. |
Dilations (const gtl::ArraySlice< int > & x) | TF_MUST_USE_RESULT Attrs טנזור חד-ממדי באורך 4. |
ExplicitPaddings (const gtl::ArraySlice< int > & x) | TF_MUST_USE_RESULT Attrs אם padding הוא "EXPLICIT" , רשימת כמויות הריפוד המפורשות. |
UseCudnnOnGpu (bool x) | TF_MUST_USE_RESULT Attrs ברירת המחדל היא אמת. |
מאפיינים ציבוריים
פורמט_נתונים
StringPiece tensorflow::ops::Conv2DBackpropInput::Attrs::data_format_ = "NHWC"
הרחבות_
gtl::ArraySlice< int > tensorflow::ops::Conv2DBackpropInput::Attrs::dilations_ = Default_dilations()
ריפודים_מפורשים
gtl::ArraySlice< int > tensorflow::ops::Conv2DBackpropInput::Attrs::explicit_paddings_ = {}use_cudnn_on_gpu_
bool tensorflow::ops::Conv2DBackpropInput::Attrs::use_cudnn_on_gpu_ = true
תפקידים ציבוריים
פורמט נתונים
TF_MUST_USE_RESULT Attrs tensorflow::ops::Conv2DBackpropInput::Attrs::DataFormat( StringPiece x )
ציין את פורמט הנתונים של נתוני הקלט והפלט.
עם פורמט ברירת המחדל "NHWC", הנתונים מאוחסנים בסדר הבא: [batch, in_height, in_width, in_channels]. לחלופין, הפורמט יכול להיות "NCHW", סדר אחסון הנתונים הבא: [batch, in_channels, in_height, in_width].
ברירת המחדל היא "NHWC"
התרחבות
TF_MUST_USE_RESULT Attrs tensorflow::ops::Conv2DBackpropInput::Attrs::Dilations( const gtl::ArraySlice< int > & x )
טנזור חד-ממדי באורך 4.
גורם ההתרחבות עבור כל ממד של input . אם מוגדר ל-k > 1, יהיו k-1 תאים שדלגו עליהם בין כל רכיב מסנן באותו ממד. סדר הממדים נקבע על ידי הערך של data_format , ראה פרטים לעיל. התרחבויות בממדי האצווה והעומק חייבות להיות 1.
ברירת המחדל היא [1, 1, 1, 1]
ריפודים מפורשים
TF_MUST_USE_RESULT Attrs tensorflow::ops::Conv2DBackpropInput::Attrs::ExplicitPaddings( const gtl::ArraySlice< int > & x )
אם padding הוא "EXPLICIT" , רשימת כמויות הריפוד המפורשות.
עבור הממד ה-i, כמות הריפוד המוכנסת לפני ואחרי הממד היא explicit_paddings[2 * i] ו- explicit_paddings[2 * i + 1] , בהתאמה. אם padding אינו "EXPLICIT" , explicit_paddings חייב להיות ריק.
ברירת המחדל היא []
השתמש ב-CudnnOnGpu
TF_MUST_USE_RESULT Attrs tensorflow::ops::Conv2DBackpropInput::Attrs::UseCudnnOnGpu( bool x )
ברירת המחדל היא אמת.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2026-11-05 (שעון UTC).