tensorflow:: אופס:: 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
  

טיעונים:

  • scope: אובייקט Scope
  • ממד: int32 או int64, חייב להיות בטווח [-rank(input), rank(input)) . מתאר איזה מימד של Tensor הקלט להפחית לרוחבו. עבור וקטורים, השתמש בממד = 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)

תכונות ציבוריות

operation
output

תפקידים ציבוריים

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 

פונקציות סטטיות ציבוריות

OutputType

Attrs OutputType(
  DataType x
)