Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
przepływ tensorowy:: ops:: Min
#include <math_ops.h>
Oblicza minimalną liczbę elementów w wymiarach tensora.
Streszczenie
Zmniejsza input
wzdłuż wymiarów podanych w axis
. O ile keep_dims
nie ma wartości true, stopień tensora jest zmniejszany o 1 dla każdego wpisu w axis
. Jeśli keep_dims
ma wartość true, zmniejszone wymiary zostaną zachowane z długością 1.
Argumenty:
- zakres: Obiekt Scope
- dane wejściowe: tensor redukcji.
- oś: Wymiary do zmniejszenia. Musi należeć do zakresu
[-rank(input), rank(input))
.
Opcjonalne atrybuty (patrz Attrs
):
- keep_dims: Jeśli ma wartość true, zachowaj zmniejszone wymiary o długości 1.
Zwroty:
Aliasy:
Publiczne funkcje statyczne |
---|
KeepDims (bool x) | |
Atrybuty publiczne
Funkcje publiczne
węzeł
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Wyjście
operator::tensorflow::Output() const
Publiczne funkcje statyczne
KeepDims
Attrs KeepDims(
bool x
)
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-27 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-27 UTC."],[],[],null,["# tensorflow::ops::Min Class Reference\n\ntensorflow::ops::Min\n====================\n\n`#include \u003cmath_ops.h\u003e`\n\nComputes the minimum of elements across dimensions of a tensor.\n\nSummary\n-------\n\nReduces `input` along the dimensions given in `axis`. Unless `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in `axis`. If `keep_dims` is true, the reduced dimensions are retained with length 1.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- input: The tensor to reduce.\n- axis: The dimensions to reduce. Must be in the range `[-rank(input), rank(input))`.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/min/attrs#structtensorflow_1_1ops_1_1_min_1_1_attrs)):\n\n- keep_dims: If true, retain reduced dimensions with length 1.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The reduced tensor.\n\n\u003cbr /\u003e\n\nAliases:\n\n- ReduceMin\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Min](#classtensorflow_1_1ops_1_1_min_1aa84e18b1cad709d6513590319f928fb0)`(const ::`[tensorflow::Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` axis)` ||\n| [Min](#classtensorflow_1_1ops_1_1_min_1a6bfcc4bf983c83051826e4d0a8c1df24)`(const ::`[tensorflow::Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` axis, const `[Min::Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/min/attrs#structtensorflow_1_1ops_1_1_min_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_min_1a827a914fb005e06f5dc6f7ed1eb51be4) | [Operation](/versions/r2.3/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_min_1a2cab2bdeee290d830a27f010f51659c1) | `::`[tensorflow::Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_min_1ad7d4dc74f3a59d6bbe72a42bf464d0ef)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_min_1ae1836c4f4dd286309f9f528a1683264a)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_min_1a5ecc266624f653708a33459a66704ee8)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|\n| [KeepDims](#classtensorflow_1_1ops_1_1_min_1a18c6f1807aac60577c43ee7fff2276e4)`(bool x)` | [Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/min/attrs#structtensorflow_1_1ops_1_1_min_1_1_attrs) |\n\n| ### Structs ||\n|-------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::Min::Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/min/attrs) | Optional attribute setters for [Min](/versions/r2.3/api_docs/cc/class/tensorflow/ops/min#classtensorflow_1_1ops_1_1_min). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\nPublic functions\n----------------\n\n### Min\n\n```gdscript\n Min(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n ::tensorflow::Input axis\n)\n``` \n\n### Min\n\n```gdscript\n Min(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n ::tensorflow::Input axis,\n const Min::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### KeepDims\n\n```text\nAttrs KeepDims(\n bool x\n)\n```"]]