Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
flux tensoriel : : opérations : : MatrixDiagPartV3 : Attributs
#include <array_ops.h>
Setters d'attributs facultatifs pour MatrixDiagPartV3 .
Résumé
Attributs publics |
---|
align_ = "RIGHT_LEFT" | StringPiece |
Fonctions publiques |
---|
Align (StringPiece x) | Certaines diagonales sont plus courtes que max_diag_len et doivent être rembourrées. |
Attributs publics
aligner_
StringPiece tensorflow::ops::MatrixDiagPartV3::Attrs::align_ = "RIGHT_LEFT"
Fonctions publiques
Aligner
TF_MUST_USE_RESULT Attrs tensorflow::ops::MatrixDiagPartV3::Attrs::Align(
StringPiece x
)
Certaines diagonales sont plus courtes que max_diag_len
et doivent être rembourrées.
align
est une chaîne spécifiant comment les superdiagonales et les sous-diagonales doivent être alignées, respectivement. Il existe quatre alignements possibles : "RIGHT_LEFT" (par défaut), "LEFT_RIGHT", "LEFT_LEFT" et "RIGHT_RIGHT". "RIGHT_LEFT" aligne les superdiagonales vers la droite (remplit la ligne à gauche) et les sous-diagonales vers la gauche (remplit la ligne à droite). C'est le format d'emballage utilisé par LAPACK. cuSPARSE utilise "LEFT_RIGHT", qui est l'alignement opposé.
La valeur par défaut est "RIGHT_LEFT".
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[null,null,["Dernière mise à jour le 2025/07/26 (UTC)."],[],[],null,["# tensorflow::ops::MatrixDiagPartV3::Attrs Struct Reference\n\ntensorflow::ops::MatrixDiagPartV3::Attrs\n========================================\n\n`#include \u003carray_ops.h\u003e`\n\nOptional attribute setters for [MatrixDiagPartV3](/versions/r2.3/api_docs/cc/class/tensorflow/ops/matrix-diag-part-v3#classtensorflow_1_1ops_1_1_matrix_diag_part_v3).\n\nSummary\n-------\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------------------------------------|---------------|\n| [align_](#structtensorflow_1_1ops_1_1_matrix_diag_part_v3_1_1_attrs_1ae1205a1c8ca51298169e77725f8079aa)` = \"RIGHT_LEFT\"` | `StringPiece` |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Align](#structtensorflow_1_1ops_1_1_matrix_diag_part_v3_1_1_attrs_1afa4bed225de64e118ded946aec30aae6)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/matrix-diag-part-v3/attrs#structtensorflow_1_1ops_1_1_matrix_diag_part_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::MatrixDiagPartV3::Attrs::align_ = \"RIGHT_LEFT\"\n``` \n\nPublic functions\n----------------\n\n### Align\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::MatrixDiagPartV3::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\""]]