Stay organized with collections
Save and categorize content based on your preferences.
#include <data_flow_ops.h>
Emits randomized records.
Summary
Args:
- 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].
Public attributes
Public functions
Public static functions
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2021-11-15 UTC.
[null,null,["Last updated 2021-11-15 UTC."],[],[],null,["# tensorflow::ops::RecordInput Class Reference\n\ntensorflow::ops::RecordInput\n============================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nEmits randomized records.\n\nSummary\n-------\n\nArgs:\n\n- scope: A [Scope](/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- file_pattern: Glob pattern for the data files.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs)):\n\n- file_random_seed: Random seeds used to produce randomized records.\n- file_shuffle_shift_ratio: Shifts the list of files after the list is randomly shuffled.\n- file_buffer_size: The randomization shuffling buffer.\n- file_parallelism: How many sstables are opened and concurrently iterated over.\n- batch_size: The batch size.\n- compression_type: The type of compression for the file. Currently ZLIB and GZIP are supported. Defaults to none.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): A tensor of shape \\[batch_size\\].\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [RecordInput](#classtensorflow_1_1ops_1_1_record_input_1a26e51531e5c0542bd24f55dba61221ae)`(const ::`[tensorflow::Scope](/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, StringPiece file_pattern)` ||\n| [RecordInput](#classtensorflow_1_1ops_1_1_record_input_1ae26a3c80b78f1c3123122b57250d2e1c)`(const ::`[tensorflow::Scope](/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, StringPiece file_pattern, const `[RecordInput::Attrs](/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_record_input_1a62134892e7237616282ce15d0cbddfb8) | [Operation](/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [records](#classtensorflow_1_1ops_1_1_record_input_1a95bec6ed7fc088ae5e33dce3df3e10c9) | `::`[tensorflow::Output](/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_record_input_1ab90acc0d521544c16095592c023a0bd6)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_record_input_1a8c3725ea7466c860d0094502f83c3758)`() const ` | |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_record_input_1a81dea1e6e25486fcc6c8eabd37f4160d)`() const ` | |\n\n| ### Public static functions ||\n|-----------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|\n| [BatchSize](#classtensorflow_1_1ops_1_1_record_input_1a24754dad89c4e9c994ecbb5eefc394e9)`(int64 x)` | [Attrs](/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs) |\n| [CompressionType](#classtensorflow_1_1ops_1_1_record_input_1a37f4ac12cc85c0f43e79b1873b283306)`(StringPiece x)` | [Attrs](/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs) |\n| [FileBufferSize](#classtensorflow_1_1ops_1_1_record_input_1a967b712c3342641c3b5cd4238d9dd123)`(int64 x)` | [Attrs](/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs) |\n| [FileParallelism](#classtensorflow_1_1ops_1_1_record_input_1a0bc86f167dbe3e24d0e72f5ea3126a84)`(int64 x)` | [Attrs](/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs) |\n| [FileRandomSeed](#classtensorflow_1_1ops_1_1_record_input_1a7e8b28adca52696f37fc119b4c5f27e0)`(int64 x)` | [Attrs](/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs) |\n| [FileShuffleShiftRatio](#classtensorflow_1_1ops_1_1_record_input_1abf3d0890e42b0646036a3c3b0224708f)`(float x)` | [Attrs](/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs) |\n\n| ### Structs ||\n|----------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::RecordInput::Attrs](/api_docs/cc/struct/tensorflow/ops/record-input/attrs) | Optional attribute setters for [RecordInput](/api_docs/cc/class/tensorflow/ops/record-input#classtensorflow_1_1ops_1_1_record_input). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### records\n\n```text\n::tensorflow::Output records\n``` \n\nPublic functions\n----------------\n\n### RecordInput\n\n```gdscript\n RecordInput(\n const ::tensorflow::Scope & scope,\n StringPiece file_pattern\n)\n``` \n\n### RecordInput\n\n```gdscript\n RecordInput(\n const ::tensorflow::Scope & scope,\n StringPiece file_pattern,\n const RecordInput::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### BatchSize\n\n```text\nAttrs BatchSize(\n int64 x\n)\n``` \n\n### CompressionType\n\n```text\nAttrs CompressionType(\n StringPiece x\n)\n``` \n\n### FileBufferSize\n\n```text\nAttrs FileBufferSize(\n int64 x\n)\n``` \n\n### FileParallelism\n\n```text\nAttrs FileParallelism(\n int64 x\n)\n``` \n\n### FileRandomSeed\n\n```text\nAttrs FileRandomSeed(\n int64 x\n)\n``` \n\n### FileShuffleShiftRatio\n\n```text\nAttrs FileShuffleShiftRatio(\n float x\n)\n```"]]