เทนเซอร์โฟลว์ :: ops :: 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)) ระบุมิติของ 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 

ฟังก์ชันคงที่สาธารณะ

ประเภทเอาต์พุต

Attrs OutputType(
  DataType x
)