tensorflow::ops::ReaderReadUpTo
#include <io_ops.h>
Возвращает до num_records пар (ключ, значение), сгенерированных Чтецом.
Резюме
Будет выполнять декеирование из входной очереди при необходимости (например, когда Чтецу нужно начать чтение из нового файла, так как он закончил с предыдущим файлом). Может вернуть меньше, чем num_records, даже перед последней партией.
Аргументы:
- scope: Объект Scope
- reader_handle: Дескриптор
Reader. - queue_handle: Дескриптор
Queue, с текстовыми элементами. - num_records: Количество записей для чтения из
Reader.
Возвращает:
| Конструкторы и деструкторы | |
|---|---|
ReaderReadUpTo(const ::tensorflow::Scope & scope, ::tensorflow::Input reader_handle, ::tensorflow::Input queue_handle, ::tensorflow::Input num_records) |
| Общедоступные атрибуты | |
|---|---|
keys | |
operation | |
values | |
Общедоступные атрибуты
ключи
::tensorflow::Output keys
операция
Operation operation
значения
::tensorflow::Output values
Общедоступные функции
ReaderReadUpTo
ReaderReadUpTo( const ::tensorflow::Scope & scope, ::tensorflow::Input reader_handle, ::tensorflow::Input queue_handle, ::tensorflow::Input num_records )
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/reader-read-up-to