جریان تنسور:: عملیات:: حداکثر
#include <math_ops.h>
حداکثر عناصر را در ابعاد یک تانسور محاسبه می کند.
خلاصه
input
در امتداد ابعاد داده شده در axis
کاهش می دهد. مگر اینکه keep_dims
درست باشد، رتبه تانسور برای هر ورودی در axis
1 کاهش می یابد. اگر keep_dims
درست باشد، ابعاد کاهش یافته با طول 1 حفظ می شود.
استدلال ها:
- scope: یک شی Scope
- ورودی: تانسور برای کاهش.
- axis: ابعاد برای کاهش. باید در محدوده
[-rank(input), rank(input))
باشد.
ویژگی های اختیاری (به Attrs
مراجعه کنید):
- keep_dims: اگر درست است، ابعاد کاهش یافته را با طول 1 حفظ کنید.
برمیگرداند:
-
Output
: تانسور کاهش یافته.
نام مستعار:
- ReduceMax
سازندگان و ویرانگرها | |
---|---|
Max (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input axis) | |
Max (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input axis, const Max::Attrs & attrs) |
صفات عمومی | |
---|---|
operation | |
output |
توابع عمومی | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
توابع استاتیک عمومی | |
---|---|
KeepDims (bool x) |
سازه ها | |
---|---|
tensorflow:: ops:: حداکثر:: Attrs | تنظیم کننده های ویژگی اختیاری برای Max . |
صفات عمومی
عملیات
Operation operation
خروجی
::tensorflow::Output output
توابع عمومی
حداکثر
Max( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis )
حداکثر
Max( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis, const Max::Attrs & attrs )
گره
::tensorflow::Node * node() const
عملگر::tensorflow::ورودی
operator::tensorflow::Input() const
عملگر::tensorflow::خروجی
operator::tensorflow::Output() const
توابع استاتیک عمومی
KeepDims
Attrs KeepDims( bool x )
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-26 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-26 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# tensorflow::ops::Max Class Reference\n\ntensorflow::ops::Max\n====================\n\n`#include \u003cmath_ops.h\u003e`\n\nComputes the maximum 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.1/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.1/api_docs/cc/struct/tensorflow/ops/max/attrs#structtensorflow_1_1ops_1_1_max_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.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The reduced tensor.\n\n\u003cbr /\u003e\n\nAliases:\n\n- ReduceMax\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Max](#classtensorflow_1_1ops_1_1_max_1ab6eb5c5cf3ec05fb17100a63ab184b9d)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` axis)` ||\n| [Max](#classtensorflow_1_1ops_1_1_max_1a4917bd2393a5aeabc5549e216f28e295)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` axis, const `[Max::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/max/attrs#structtensorflow_1_1ops_1_1_max_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_max_1a4f664e2282bdf700c1981a160ece7c9e) | [Operation](/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_max_1aa89ae019f795b0a71f4a5d16a73ea669) | `::`[tensorflow::Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_max_1a4d721922254ff1394832ee6119a1835e)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_max_1a9ba68be543561fe5cf21512f7395b8e3)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_max_1af28e78785e1db66ee949c3338aebd594)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|\n| [KeepDims](#classtensorflow_1_1ops_1_1_max_1af4ce8513e298223e3e7b4d91b392fe04)`(bool x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/max/attrs#structtensorflow_1_1ops_1_1_max_1_1_attrs) |\n\n| ### Structs ||\n|-------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::Max::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/max/attrs) | Optional attribute setters for [Max](/versions/r2.1/api_docs/cc/class/tensorflow/ops/max#classtensorflow_1_1ops_1_1_max). |\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### Max\n\n```gdscript\n Max(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n ::tensorflow::Input axis\n)\n``` \n\n### Max\n\n```gdscript\n Max(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n ::tensorflow::Input axis,\n const Max::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```"]]