tensorflow:: אופס:: 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 טנסור 1-D באורך 4. |
ExplicitPaddings (const gtl::ArraySlice< int > & x) | TF_MUST_USE_RESULT Attrs אם padding הוא "EXPLICIT" , רשימת סכומי הריפוד המפורשים. |
UseCudnnOnGpu (bool x) | TF_MUST_USE_RESULT Attrs ברירת המחדל לאמת. |
תכונות ציבוריות
data_format_
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
תפקידים ציבוריים
DataFormat
TF_MUST_USE_RESULT Attrs tensorflow::ops::Conv2DBackpropInput::Attrs::DataFormat( StringPiece x )
ציין את פורמט הנתונים של נתוני הקלט והפלט.
עם פורמט ברירת המחדל "NHWC", הנתונים מאוחסנים בסדר של: [אצווה, גובה_ב, רוחב_ב-ערוצים]. לחלופין, הפורמט יכול להיות "NCHW", סדר אחסון הנתונים של: [אצווה, in_channels, in_height, in_width].
ברירת המחדל היא "NHWC"
הרחבות
TF_MUST_USE_RESULT Attrs tensorflow::ops::Conv2DBackpropInput::Attrs::Dilations( const gtl::ArraySlice< int > & x )
טנסור 1-D באורך 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"
, רשימת סכומי הריפוד המפורשים.
עבור הממד ה-ith, כמות הריפוד שהוכנסה לפני ואחרי הממד היא 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 )
ברירת המחדל לאמת.