Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
przepływ tensorowy:: ops:: RzadkiRzadkiMaksymalny
#include <sparse_ops.h>
Zwraca elementową maksymalną wartość dwóch SparseTensorów.
Streszczenie
Zakłada się, że dwa SparseTensory mają ten sam kształt, tj. nie są rozgłaszane.
Argumenty:
- zakres: Obiekt Scope
- a_indeksy: 2-D. Macierz
N x R
z indeksami wartości niepustych w SparseTensorze, w kanonicznym porządku leksykograficznym. - a_wartości: 1-D.
N
niepustych wartości odpowiadających a_indices
. - a_kształt: 1-D. Kształt wejścia SparseTensor.
- b_indices: odpowiednik
a_indices
dla drugiego operandu. - b_values: odpowiednik
a_values
dla drugiego operandu; musi być tego samego typu d. - b_shape: odpowiednik
a_shape
dla drugiego operandu; oba kształty muszą być równe.
Zwroty:
-
Output
indeksy_wyjściowe: 2-D. Indeksy wyjściowego SparseTensor. -
Output
wartości_wyjściowe: 1-D. Wartości wyjściowe SparseTensor.
Atrybuty publiczne
Funkcje publiczne
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[],[],null,["# tensorflow::ops::SparseSparseMaximum Class Reference\n\ntensorflow::ops::SparseSparseMaximum\n====================================\n\n`#include \u003csparse_ops.h\u003e`\n\nReturns the element-wise max of two SparseTensors.\n\nSummary\n-------\n\nAssumes the two SparseTensors have the same shape, i.e., no broadcasting.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- a_indices: 2-D. `N x R` matrix with the indices of non-empty values in a SparseTensor, in the canonical lexicographic ordering.\n- a_values: 1-D. `N` non-empty values corresponding to `a_indices`.\n- a_shape: 1-D. Shape of the input SparseTensor.\n- b_indices: counterpart to `a_indices` for the other operand.\n- b_values: counterpart to `a_values` for the other operand; must be of the same dtype.\n- b_shape: counterpart to `a_shape` for the other operand; the two shapes must be equal.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) output_indices: 2-D. The indices of the output SparseTensor.\n- [Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) output_values: 1-D. The values of the output SparseTensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [SparseSparseMaximum](#classtensorflow_1_1ops_1_1_sparse_sparse_maximum_1a565b62c482eb0b256e0161968b5a5b98)`(const ::`[tensorflow::Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` a_indices, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` a_values, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` a_shape, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` b_indices, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` b_values, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` b_shape)` ||\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_sparse_sparse_maximum_1ab3980c4129285e7e81a781268c810722) | [Operation](/versions/r2.2/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output_indices](#classtensorflow_1_1ops_1_1_sparse_sparse_maximum_1a72bec4470a0c859b5456bb5298c216c9) | `::`[tensorflow::Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [output_values](#classtensorflow_1_1ops_1_1_sparse_sparse_maximum_1a7ca61cc084806e0d598780a6a8e8b11d) | `::`[tensorflow::Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output_indices\n\n```scdoc\n::tensorflow::Output output_indices\n``` \n\n### output_values\n\n```scdoc\n::tensorflow::Output output_values\n``` \n\nPublic functions\n----------------\n\n### SparseSparseMaximum\n\n```gdscript\n SparseSparseMaximum(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input a_indices,\n ::tensorflow::Input a_values,\n ::tensorflow::Input a_shape,\n ::tensorflow::Input b_indices,\n ::tensorflow::Input b_values,\n ::tensorflow::Input b_shape\n)\n```"]]