Stay organized with collections
Save and categorize content based on your preferences.
#include <data_flow_ops.h>
Optional attribute setters for RecordInput.
Summary
Public attributes
Public 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::Attrs Struct Reference\n\ntensorflow::ops::RecordInput::Attrs\n===================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nOptional attribute setters for [RecordInput](/api_docs/cc/class/tensorflow/ops/record-input#classtensorflow_1_1ops_1_1_record_input).\n\nSummary\n-------\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------------------------|---------------|\n| [batch_size_](#structtensorflow_1_1ops_1_1_record_input_1_1_attrs_1a5e93b5c3afd9d100fa2d826b2eebc6ef)` = 32` | `int64` |\n| [compression_type_](#structtensorflow_1_1ops_1_1_record_input_1_1_attrs_1a7eed7761965f835ba1ace20d5987432e)` = \"\"` | `StringPiece` |\n| [file_buffer_size_](#structtensorflow_1_1ops_1_1_record_input_1_1_attrs_1a88c16d81d3320ef5a8e8df9e88e37844)` = 10000` | `int64` |\n| [file_parallelism_](#structtensorflow_1_1ops_1_1_record_input_1_1_attrs_1a052209b9b34024362c66e051ae68b91a)` = 16` | `int64` |\n| [file_random_seed_](#structtensorflow_1_1ops_1_1_record_input_1_1_attrs_1a4db56cae459a556a0c9e65a506e4c9c9)` = 301` | `int64` |\n| [file_shuffle_shift_ratio_](#structtensorflow_1_1ops_1_1_record_input_1_1_attrs_1a620f58ee4cd1533315f6518267466964)` = 0.0f` | `float` |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [BatchSize](#structtensorflow_1_1ops_1_1_record_input_1_1_attrs_1a9423205364b100fa34c6c9fe995851dc)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs) The batch size. |\n| [CompressionType](#structtensorflow_1_1ops_1_1_record_input_1_1_attrs_1a6e329660b38cf6032f6d96d5252405c7)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs) The type of compression for the file. |\n| [FileBufferSize](#structtensorflow_1_1ops_1_1_record_input_1_1_attrs_1a43601cd3b615d55ecaf9c7b59adaf9dd)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs) The randomization shuffling buffer. |\n| [FileParallelism](#structtensorflow_1_1ops_1_1_record_input_1_1_attrs_1af397048dba5fe9974fc5a5813634968d)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs) How many sstables are opened and concurrently iterated over. |\n| [FileRandomSeed](#structtensorflow_1_1ops_1_1_record_input_1_1_attrs_1a9cd39adb79d949d15fd248da85c39490)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs) Random seeds used to produce randomized records. |\n| [FileShuffleShiftRatio](#structtensorflow_1_1ops_1_1_record_input_1_1_attrs_1aae62ed429029c914a7e17373f915d5df)`(float x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs) Shifts the list of files after the list is randomly shuffled. |\n\nPublic attributes\n-----------------\n\n### batch_size_\n\n```scdoc\nint64 tensorflow::ops::RecordInput::Attrs::batch_size_ = 32\n``` \n\n### compression_type_\n\n```carbon\nStringPiece tensorflow::ops::RecordInput::Attrs::compression_type_ = \"\"\n``` \n\n### file_buffer_size_\n\n```scdoc\nint64 tensorflow::ops::RecordInput::Attrs::file_buffer_size_ = 10000\n``` \n\n### file_parallelism_\n\n```scdoc\nint64 tensorflow::ops::RecordInput::Attrs::file_parallelism_ = 16\n``` \n\n### file_random_seed_\n\n```scdoc\nint64 tensorflow::ops::RecordInput::Attrs::file_random_seed_ = 301\n``` \n\n### file_shuffle_shift_ratio_\n\n```scdoc\nfloat tensorflow::ops::RecordInput::Attrs::file_shuffle_shift_ratio_ = 0.0f\n``` \n\nPublic functions\n----------------\n\n### BatchSize\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::RecordInput::Attrs::BatchSize(\n int64 x\n)\n``` \nThe batch size.\n\nDefaults to 32 \n\n### CompressionType\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::RecordInput::Attrs::CompressionType(\n StringPiece x\n)\n``` \nThe type of compression for the file.\n\nCurrently ZLIB and GZIP are supported. Defaults to none.\n\nDefaults to \"\" \n\n### FileBufferSize\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::RecordInput::Attrs::FileBufferSize(\n int64 x\n)\n``` \nThe randomization shuffling buffer.\n\nDefaults to 10000 \n\n### FileParallelism\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::RecordInput::Attrs::FileParallelism(\n int64 x\n)\n``` \nHow many sstables are opened and concurrently iterated over.\n\nDefaults to 16 \n\n### FileRandomSeed\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::RecordInput::Attrs::FileRandomSeed(\n int64 x\n)\n``` \nRandom seeds used to produce randomized records.\n\nDefaults to 301 \n\n### FileShuffleShiftRatio\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::RecordInput::Attrs::FileShuffleShiftRatio(\n float x\n)\n``` \nShifts the list of files after the list is randomly shuffled.\n\nDefaults to 0"]]