เทนเซอร์โฟลว์:: ออปส์:: ว่างเปล่า

#include <array_ops.h>

สร้างเทนเซอร์ที่มีรูปร่างตามที่กำหนดให้

สรุป

การดำเนินการนี้จะสร้างเทนเซอร์ที่มี shape และ dtype

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • รูปร่าง: 1 มิติ แสดงถึงรูปร่างของเทนเซอร์ผลลัพธ์

คุณลักษณะเสริม (ดูที่ Attrs ):

  • init: ถ้าเป็น True ระบบจะกำหนดค่าเริ่มต้นให้กับเทนเซอร์ที่ส่งคืนด้วยค่าเริ่มต้นของ dtype มิฉะนั้น ระบบสามารถเลือกที่จะไม่กำหนดค่าเริ่มต้นให้กับเนื้อหาของเทนเซอร์ได้

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

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

Empty (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, DataType dtype)
Empty (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, DataType dtype, const Empty::Attrs & attrs)

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

operation
output

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

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

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

Init (bool x)

โครงสร้าง

tensorflow:: ops:: Empty:: Attrs

ตัวเลือกในการตั้งค่าแอตทริบิวต์สำหรับ Empty

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

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

Operation operation

เอาต์พุต

::tensorflow::Output output

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

ว่างเปล่า

 Empty(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input shape,
  DataType dtype
)

ว่างเปล่า

 Empty(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input shape,
  DataType dtype,
  const Empty::Attrs & attrs
)

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

เริ่มต้น

Attrs Init(
  bool x
)