dòng chảy căng:: ôi:: Bản ghiĐầu vào

#include <data_flow_ops.h>

Phát ra các bản ghi ngẫu nhiên.

Bản tóm tắt

Tranh luận:

  • phạm vi: Một đối tượng Phạm vi
  • file_pattern: Mẫu toàn cầu cho các tệp dữ liệu.

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

  • file_random_seed: Hạt giống ngẫu nhiên được sử dụng để tạo ra các bản ghi ngẫu nhiên.
  • file_shuffle_shift_ratio: Chuyển danh sách các tập tin sau khi danh sách được xáo trộn ngẫu nhiên.
  • file_buffer_size: Bộ đệm xáo trộn ngẫu nhiên.
  • file_parallelism: Có bao nhiêu sstable được mở và lặp lại đồng thời.
  • batch_size: Kích thước lô.
  • Compression_type: Kiểu nén của file. Hiện tại ZLIB và GZIP được hỗ trợ. Mặc định là không có.

Trả về:

  • Output : Một tensor có hình dạng [batch_size].

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

RecordInput (const :: tensorflow::Scope & scope, StringPiece file_pattern)
RecordInput (const :: tensorflow::Scope & scope, StringPiece file_pattern, const RecordInput::Attrs & attrs)

Thuộc tính công khai

operation
records

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

BatchSize (int64 x)
CompressionType (StringPiece x)
FileBufferSize (int64 x)
FileParallelism (int64 x)
FileRandomSeed (int64 x)
FileShuffleShiftRatio (float x)

Cấu trúc

tenorflow:: ops:: RecordInput:: Attrs

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

Thuộc tính công khai

hoạt động

Operation operation

Hồ sơ

::tensorflow::Output records

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

Bản ghiĐầu vào

 RecordInput(
  const ::tensorflow::Scope & scope,
  StringPiece file_pattern
)

Bản ghiĐầu vào

 RecordInput(
  const ::tensorflow::Scope & scope,
  StringPiece file_pattern,
  const RecordInput::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

Kích thước lô

Attrs BatchSize(
  int64 x
)

Kiểu nén

Attrs CompressionType(
  StringPiece x
)

Kích thước bộ đệm tệp

Attrs FileBufferSize(
  int64 x
)

Tập tin song song

Attrs FileParallelism(
  int64 x
)

Tập tinHạt giống ngẫu nhiên

Attrs FileRandomSeed(
  int64 x
)

TệpShuffleShiftTỷ lệ

Attrs FileShuffleShiftRatio(
  float x
)