dòng chảy căng:: ôi:: Trống

#include <array_ops.h>

Tạo một tensor có hình dạng nhất định.

Bản tóm tắt

Thao tác này tạo ra một tensor có shapedtype .

Tranh luận:

  • phạm vi: Một đối tượng Phạm vi
  • hình dạng: 1-D. Biểu thị hình dạng của tensor đầu ra.

Thuộc tính tùy chọn (xem Attrs ):

  • init: Nếu đúng, hãy khởi tạo tensor trả về với giá trị mặc định là dtype. Mặt khác, việc triển khai miễn phí không khởi tạo nội dung của tensor.

Trả về:

Hàm tạo và hàm hủy

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

Thuộc tính công khai

operation
output

Chức năng công cộng

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

Các hàm tĩnh công khai

Init (bool x)

Cấu trúc

tenorflow:: ops:: Empty:: Attrs

Trình thiết lập thuộc tính tùy chọn cho Empty .

Thuộc tính công khai

hoạt động

Operation operation

đầu ra

::tensorflow::Output output

Chức năng công cộng

Trống

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

Trống

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

nút

::tensorflow::Node * node() const 

toán tử::tenorflow::Đầu vào

 operator::tensorflow::Input() const 

toán tử::tenorflow::Đầu ra

 operator::tensorflow::Output() const 

Các hàm tĩnh công khai

Trong đó

Attrs Init(
  bool x
)