tensorflow::ops::OnesLike

#include <array_ops.h>

ส่งคืนเทนเซอร์ที่มีค่าเป็นหนึ่งทั้งหมด โดยมีรูปร่างและประเภทเดียวกับ x

สรุป

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • x: เทนเซอร์ชนิด T

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

  • Output : เทนเซอร์ที่มีรูปร่างและประเภทเดียวกับ x แต่เต็มไปด้วยเลข 1

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

OnesLike (const :: tensorflow::Scope & scope, :: tensorflow::Input x)

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

operation
y

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

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

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

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

Operation operation

y

::tensorflow::Output y

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

วันไลค์

 OnesLike(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x
)

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const