Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::MatrixSetDiagV3::Attrs
#include <array_ops.h>
Optional attribute setters for MatrixSetDiagV3.
Summary
Public attributes
|
align_ = "RIGHT_LEFT"
|
StringPiece
|
Public functions
|
Align(StringPiece x)
|
Some diagonals are shorter than max_diag_len and need to be padded.
|
Public attributes
align_
StringPiece tensorflow::ops::MatrixSetDiagV3::Attrs::align_ = "RIGHT_LEFT"
Public functions
Align
TF_MUST_USE_RESULT Attrs tensorflow::ops::MatrixSetDiagV3::Attrs::Align(
StringPiece x
)
Some diagonals are shorter than max_diag_len
and need to be padded.
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.
Defaults to "RIGHT_LEFT"
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 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.14/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.14/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\""]]