tensorflow::ops::RecordInput
#include <data_flow_ops.h>
Emits randomized records.
Summary
Arguments:
- scope: A Scope object
- file_pattern: Glob pattern for the data files.
Optional attributes (see Attrs
):
- file_random_seed: Random seeds used to produce randomized records.
- file_shuffle_shift_ratio: Shifts the list of files after the list is randomly shuffled.
- file_buffer_size: The randomization shuffling buffer.
- file_parallelism: How many sstables are opened and concurrently iterated over.
- batch_size: The batch size.
- compression_type: The type of compression for the file. Currently ZLIB and GZIP are supported. Defaults to none.
Returns:
-
Output
: A tensor of shape [batch_size].
Constructors and Destructors | |
---|---|
RecordInput(const ::tensorflow::Scope & scope, StringPiece file_pattern) | |
RecordInput(const ::tensorflow::Scope & scope, StringPiece file_pattern, const RecordInput::Attrs & attrs) |
Public attributes | |
---|---|
operation | |
records |
Public functions | |
---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const |
Public static functions | |
---|---|
BatchSize(int64 x) | |
CompressionType(StringPiece x) | |
FileBufferSize(int64 x) | |
FileParallelism(int64 x) | |
FileRandomSeed(int64 x) | |
FileShuffleShiftRatio(float x) |
Structs | |
---|---|
tensorflow::ops::RecordInput::Attrs | Optional attribute setters for RecordInput. |
Public attributes
operation
Operation operation
records
::tensorflow::Output records
Public functions
RecordInput
RecordInput( const ::tensorflow::Scope & scope, StringPiece file_pattern )
RecordInput
RecordInput( const ::tensorflow::Scope & scope, StringPiece file_pattern, const RecordInput::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Public static functions
BatchSize
Attrs BatchSize( int64 x )
CompressionType
Attrs CompressionType( StringPiece x )
FileBufferSize
Attrs FileBufferSize( int64 x )
FileParallelism
Attrs FileParallelism( int64 x )
FileRandomSeed
Attrs FileRandomSeed( int64 x )
FileShuffleShiftRatio
Attrs FileShuffleShiftRatio( float x )
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/record-input