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

Method read

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

Returns the contents of a file as a string. Starts reading from current position in file. Args: n: Read 'n' bytes if n != -1. If n = -1, reads to end of file. Returns: 'n' bytes of the file (or whole file) in bytes mode or 'n' bytes of the string if in string (regula

(self, n=-1)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 12

testEmptyFilenameMethod · 0.95
testMultipleFilesMethod · 0.95
testCopyMethod · 0.95
testEofMethod · 0.95
read_file_to_stringFunction · 0.95
testReadBinaryModeMethod · 0.45
testWriteBinaryModeMethod · 0.45
testAppendMethod · 0.45
testFileReadBadModeMethod · 0.45
testCopyOverwriteMethod · 0.45
testReadMethod · 0.45
testUTF8StringPathMethod · 0.45

Calls 5

_preread_checkMethod · 0.95
sizeMethod · 0.95
tellMethod · 0.95
_prepare_valueMethod · 0.95
ReadFromStreamMethod · 0.80

Tested by 11

testEmptyFilenameMethod · 0.76
testMultipleFilesMethod · 0.76
testCopyMethod · 0.76
testEofMethod · 0.76
testReadBinaryModeMethod · 0.36
testWriteBinaryModeMethod · 0.36
testAppendMethod · 0.36
testFileReadBadModeMethod · 0.36
testCopyOverwriteMethod · 0.36
testReadMethod · 0.36
testUTF8StringPathMethod · 0.36