تدفق التوتر:: العمليات:: ArgMin
#include <math_ops.h>
تُرجع الفهرس بأصغر قيمة عبر أبعاد الموتر.
ملخص
لاحظ أنه في حالة الروابط لا يتم ضمان هوية قيمة الإرجاع.
الاستخدام:
import tensorflow as tf a = [1, 10, 26.9, 2.8, 166.32, 62.3] b = tf.math.argmin(input = a) c = tf.keras.backend.eval(b) # c = 0 # here a[0] = 1 which is the smallest element of a across axis 0
الحجج:
- النطاق: كائن النطاق
- البعد: int32 أو int64، يجب أن يكون في النطاق
[-rank(input), rank(input))
. يصف البعد الذي يجب تقليله من موتر الإدخال. بالنسبة للمتجهات، استخدم البعد = 0.
العوائد:
-
Output
: موتر الإخراج.
البنائين والمدمرين | |
---|---|
ArgMin (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input dimension) | |
ArgMin (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input dimension, const ArgMin::Attrs & attrs) |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
وظائف ثابتة العامة | |
---|---|
OutputType (DataType x) |
الهياكل | |
---|---|
Tensorflow:: ops:: ArgMin:: Attrs | محددات السمات الاختيارية لـ ArgMin . |
الصفات العامة
عملية
Operation operation
الإخراج
::tensorflow::Output output
الوظائف العامة
ArgMin
ArgMin( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input dimension )
ArgMin
ArgMin( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input dimension, const ArgMin::Attrs & attrs )
العقدة
::tensorflow::Node * node() const
المشغل::tensorflow::الإدخال
operator::tensorflow::Input() const
المشغل::tensorflow::الإخراج
operator::tensorflow::Output() const
وظائف ثابتة العامة
نوع الإخراج
Attrs OutputType( DataType x )