เทนเซอร์โฟลว์:: ปฏิบัติการ:: เพิ่มN

#include <math_ops.h>

เพิ่ม องค์ประกอบเทนเซอร์อินพุตทั้งหมดอย่างชาญฉลาด

สรุป

ข้อมูลเข้าจะต้องมีขนาดและรูปร่างเท่ากัน

  x = [9, 7, 10]
  tf.math.add_n(x) ==> 26
  

ข้อโต้แย้ง:

ผลตอบแทน:

  • Output : ผลรวมเทนเซอร์

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

AddN (const :: tensorflow::Scope & scope, :: tensorflow::InputList inputs)

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

operation
sum

งานสาธารณะ

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

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

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

Operation operation

ผลรวม

::tensorflow::Output sum

งานสาธารณะ

เพิ่มN

 AddN(
  const ::tensorflow::Scope & scope,
  ::tensorflow::InputList inputs
)

โหนด

::tensorflow::Node * node() const 

ตัวดำเนินการ::tensorflow::อินพุต

 operator::tensorflow::Input() const 

ตัวดำเนินการ::tensorflow::เอาต์พุต

 operator::tensorflow::Output() const 
,

เทนเซอร์โฟลว์:: ปฏิบัติการ:: เพิ่มN

#include <math_ops.h>

เพิ่ม องค์ประกอบเทนเซอร์อินพุตทั้งหมดอย่างชาญฉลาด

สรุป

ข้อมูลเข้าจะต้องมีขนาดและรูปร่างเท่ากัน

  x = [9, 7, 10]
  tf.math.add_n(x) ==> 26
  

ข้อโต้แย้ง:

ผลตอบแทน:

  • Output : ผลรวมเทนเซอร์

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

AddN (const :: tensorflow::Scope & scope, :: tensorflow::InputList inputs)

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

operation
sum

งานสาธารณะ

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

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

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

Operation operation

ผลรวม

::tensorflow::Output sum

งานสาธารณะ

เพิ่มN

 AddN(
  const ::tensorflow::Scope & scope,
  ::tensorflow::InputList inputs
)

โหนด

::tensorflow::Node * node() const 

ตัวดำเนินการ::tensorflow::อินพุต

 operator::tensorflow::Input() const 

ตัวดำเนินการ::tensorflow::เอาต์พุต

 operator::tensorflow::Output() const