tensorflow::ops::TruncateDiv

#include <math_ops.h>

ส่งคืนค่า x / y ทีละองค์ประกอบสำหรับประเภทข้อมูลจำนวนเต็ม

สรุป

การตัดทศนิยม (Truncation) หมายความว่าจำนวนลบจะปัดเศษเข้าหาศูนย์ เช่น -7 / 5 = -1 ซึ่งตรงกับหลักการทำงานของภาษา C แต่แตกต่างจากหลักการทำงานของภาษา Python ดู FloorDiv สำหรับฟังก์ชันการหารที่ตรงกับหลักการทำงานของภาษา Python

หมายเหตุ : TruncateDiv รองรับการกระจายข้อมูล (broadcasting) ดูรายละเอียดเพิ่มเติมเกี่ยวกับการกระจายข้อมูล ได้ที่นี่

ข้อโต้แย้ง:

การส่งคืนสินค้า:

  • Output : เทนเซอร์ z

ตัวสร้างและตัวทำลาย

TruncateDiv (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input y)

คุณลักษณะสาธารณะ

operation
z

หน้าที่สาธารณะ

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

คุณลักษณะสาธารณะ

การดำเนินการ

Operation operation

z

::tensorflow::Output z

หน้าที่สาธารณะ

ตัดทอนดิฟ

 TruncateDiv(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  ::tensorflow::Input y
)

โหนด

::tensorflow::Node * node() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต

 operator::tensorflow::Input() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต

 operator::tensorflow::Output() const