tensorflow:: אופס:: MatrixSetDiagV3:: Attrs
#include <array_ops.h>
קובעי תכונות אופציונליים עבור MatrixSetDiagV3 .
תַקצִיר
תכונות ציבוריות |
---|
align_ = "RIGHT_LEFT" | StringPiece |
תפקידים ציבוריים |
---|
Align (StringPiece x) | חלק מהאלכסונים קצרים מ- max_diag_len וצריכים להיות מרופדים. |
תכונות ציבוריות
יישור_
StringPiece tensorflow::ops::MatrixSetDiagV3::Attrs::align_ = "RIGHT_LEFT"
תפקידים ציבוריים
יישר
TF_MUST_USE_RESULT Attrs tensorflow::ops::MatrixSetDiagV3::Attrs::Align(
StringPiece x
)
חלק מהאלכסונים קצרים מ- max_diag_len
וצריכים להיות מרופדים.
align
היא מחרוזת המציינת כיצד יש ליישר אלכסוני-על ותת-אלכסונים, בהתאמה. ישנם ארבעה יישורים אפשריים: "RIGHT_LEFT" (ברירת מחדל), "LEFT_RIGHT", "LEFT_LEFT" ו-"RIGHT_RIGHT". "RIGHT_LEFT" מיישר את אלכסוני העל ימינה (מכפיל את השורה משמאל) ואת אלכסוני המשנה שמאלה (מכפיל את השורה מימין). זוהי פורמט האריזה שבו LAPACK משתמש. cuSPARSE משתמש ב-"LEFT_RIGHT", שהוא היישור ההפוך.
ברירת המחדל היא "RIGHT_LEFT"
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[],null,["# tensorflow::ops::MatrixSetDiagV3::Attrs Struct Reference\n\ntensorflow::ops::MatrixSetDiagV3::Attrs\n=======================================\n\n`#include \u003carray_ops.h\u003e`\n\nOptional attribute setters for [MatrixSetDiagV3](/versions/r2.2/api_docs/cc/class/tensorflow/ops/matrix-set-diag-v3#classtensorflow_1_1ops_1_1_matrix_set_diag_v3).\n\nSummary\n-------\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------------------------------|---------------|\n| [align_](#structtensorflow_1_1ops_1_1_matrix_set_diag_v3_1_1_attrs_1ab4717dd168a0bce9a9cf8e1c16f197a3)` = \"RIGHT_LEFT\"` | `StringPiece` |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Align](#structtensorflow_1_1ops_1_1_matrix_set_diag_v3_1_1_attrs_1a752d915f79d47786183ec52d2c3e0b2e)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/matrix-set-diag-v3/attrs#structtensorflow_1_1ops_1_1_matrix_set_diag_v3_1_1_attrs) Some diagonals are shorter than `max_diag_len` and need to be padded. |\n\nPublic attributes\n-----------------\n\n### align_\n\n```scdoc\nStringPiece tensorflow::ops::MatrixSetDiagV3::Attrs::align_ = \"RIGHT_LEFT\"\n``` \n\nPublic functions\n----------------\n\n### Align\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::MatrixSetDiagV3::Attrs::Align(\n StringPiece x\n)\n``` \nSome diagonals are shorter than `max_diag_len` and need to be padded.\n\n`align` is a string specifying how superdiagonals and subdiagonals should be aligned, respectively. There are four possible alignments: \"RIGHT_LEFT\" (default), \"LEFT_RIGHT\", \"LEFT_LEFT\", and \"RIGHT_RIGHT\". \"RIGHT_LEFT\" aligns superdiagonals to the right (left-pads the row) and subdiagonals to the left (right-pads the row). It is the packing format LAPACK uses. cuSPARSE uses \"LEFT_RIGHT\", which is the opposite alignment.\n\nDefaults to \"RIGHT_LEFT\""]]