Class ReadFile

java.lang.Object
org.tensorflow.op.RawOp
org.tensorflow.op.io.ReadFile
All Implemented Interfaces:
Shaped, Op, Operand<TString>

@Operator(group="io") public final class ReadFile extends RawOp implements Operand<TString>
Reads and outputs the entire contents of the input filename.
  • Field Details

  • Constructor Details

    • ReadFile

      public ReadFile(Operation operation)
  • Method Details

    • create

      @Endpoint(describeByClass=true) public static ReadFile create(Scope scope, Operand<TString> filename)
      Factory method to create a class wrapping a new ReadFile operation.
      Parameters:
      scope - current scope
      filename - The filename value
      Returns:
      a new instance of ReadFile
    • contents

      public Output<TString> contents()
      Gets contents.
      Returns:
      contents.
    • asOutput

      public Output<TString> asOutput()
      Description copied from interface: Operand
      Returns the symbolic handle of the tensor.

      Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.

      Specified by:
      asOutput in interface Operand<TString>
      See Also: