W3cubDocs

/TensorFlow C++

tensorflow::ops::WholeFileReader

#include <io_ops.h>

A Reader that outputs the entire contents of a file as a value.

Summary

To use, enqueue filenames in a Queue. The output of ReaderRead will be a filename (key) and the contents of that file (value).

Arguments:

Optional attributes (see Attrs):

  • container: If non-empty, this reader is placed in the given container. Otherwise, a default container is used.
  • shared_name: If non-empty, this reader is named in the given bucket with this shared_name. Otherwise, the node name is used instead.

Returns:

  • Output: The handle to reference the Reader.
Constructors and Destructors
WholeFileReader(const ::tensorflow::Scope & scope)
WholeFileReader(const ::tensorflow::Scope & scope, const WholeFileReader::Attrs & attrs)
Public attributes
reader_handle
Public functions
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Public static functions
Container(StringPiece x)
SharedName(StringPiece x)
Structs
tensorflow::ops::WholeFileReader::Attrs

Optional attribute setters for WholeFileReader.

Public attributes

reader_handle

::tensorflow::Output reader_handle

Public functions

WholeFileReader

 WholeFileReader(
  const ::tensorflow::Scope & scope
)

WholeFileReader

 WholeFileReader(
  const ::tensorflow::Scope & scope,
  const WholeFileReader::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

Public static functions

Container

Attrs Container(
  StringPiece x
)

SharedName

Attrs SharedName(
  StringPiece x
)

© 2017 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/api_docs/cc/class/tensorflow/ops/whole-file-reader.html