tensorflow::InputList
#include <ops.h>Một kiểu dữ liệu dùng để biểu diễn đầu vào cho các phép toán yêu cầu một danh sách các tensor.
Bản tóm tắt
Hàm khởi tạo và hàm hủy | |
|---|---|
InputList (const OutputList & out) Tự động chuyển đổi danh sách đầu ra thành danh sách đầu vào. | |
InputList (const std::initializer_list< Input > & inputs) | |
InputList (const tensorflow::gtl::ArraySlice< Input > & inputs) | |
InputList (const std::initializer_list< Output > & out) |
Chức năng công cộng | |
|---|---|
begin () | std::vector< Input >::iterator |
begin () const | std::vector< Input >::const_iterator |
end () | std::vector< Input >::iterator |
end () const | std::vector< Input >::const_iterator |
Chức năng công cộng
Danh sách đầu vào
InputList( const OutputList & out )
Tự động chuyển đổi danh sách đầu ra thành danh sách đầu vào.
Điều này rất hữu ích để viết mã như ops::Concat(ops::Split(x, 4)).
Danh sách đầu vào
InputList( const std::initializer_list< Input > & inputs )
Danh sách đầu vào
InputList( const tensorflow::gtl::ArraySlice< Input > & inputs )
Danh sách đầu vào
InputList( const std::initializer_list< Output > & out )
bắt đầu
std::vector< Input >::iterator begin()
bắt đầu
std::vector< Input >::const_iterator begin() const
kết thúc
std::vector< Input >::iterator end()
kết thúc
std::vector< Input >::const_iterator end() const