MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _prepare_value

Method _prepare_value

tensorflow/python/lib/io/file_io.py:94–98  ·  view source on GitHub ↗
(self, val)

Source from the content-addressed store, hash-verified

92 compat.as_bytes(self.__name), compat.as_bytes(self.__mode))
93
94 def _prepare_value(self, val):
95 if self._binary_mode:
96 return compat.as_bytes(val)
97 else:
98 return compat.as_str_any(val)
99
100 def size(self):
101 """Returns the size of the file."""

Callers 2

readMethod · 0.95
readlineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected