MCPcopy Create free account
hub / github.com/benoitsteiner/tensorflow-opencl / read_file_to_string

Function read_file_to_string

tensorflow/python/lib/io/file_io.py:273–292  ·  view source on GitHub ↗

Reads the entire contents of a file to a string. Args: filename: string, path to a file binary_mode: whether to open the file in binary mode or not. This changes the type of the object returned. Returns: contents of the file as a string or bytes. Raises: errors.OpErr

(filename, binary_mode=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

readMethod · 0.95
FileIOClass · 0.85

Tested by

no test coverage detected