tensorflow::ops::Empty
#include <array_ops.h>Tạo một tensor với hình dạng đã cho.
Bản tóm tắt
Thao tác này tạo ra một tensor có shape và dtype .
Luận điểm:
- phạm vi: Một đối tượng Phạm vi
- hình dạng: 1 chiều. Biểu thị hình dạng của tensor đầu ra.
Các thuộc tính tùy chọn (xem Attrs ):
- init: Nếu True, khởi tạo tensor được trả về với giá trị mặc định của dtype. Ngược lại, trình biên dịch có thể không cần khởi tạo nội dung của tensor.
Trả về:
Hàm khởi 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 | |
|---|---|
| tensorflow::ops::Empty::Attrs | Các 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
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Các hàm tĩnh công khai
Khởi tạo
Attrs Init( bool x )