Searched refs:bytes_or_text (Results 1 – 3 of 3) sorted by relevance
/external/tensorflow/tensorflow/python/util/ |
D | compat.py | 64 def as_bytes(bytes_or_text, encoding='utf-8'): argument 79 if isinstance(bytes_or_text, bytearray): 80 return bytes(bytes_or_text) 81 elif isinstance(bytes_or_text, _six.text_type): 82 return bytes_or_text.encode(encoding) 83 elif isinstance(bytes_or_text, bytes): 84 return bytes_or_text 87 (bytes_or_text,)) 90 def as_text(bytes_or_text, encoding='utf-8'): argument 106 if isinstance(bytes_or_text, _six.text_type): [all …]
|
/external/tensorflow/tensorflow/tools/api/golden/v1/ |
D | tensorflow.compat.pbtxt | 21 …argspec: "args=[\'bytes_or_text\', \'encoding\'], varargs=None, keywords=None, defaults=[\'utf-8\'… 25 …argspec: "args=[\'bytes_or_text\', \'encoding\'], varargs=None, keywords=None, defaults=[\'utf-8\'… 33 …argspec: "args=[\'bytes_or_text\', \'encoding\'], varargs=None, keywords=None, defaults=[\'utf-8\'…
|
/external/tensorflow/tensorflow/tools/api/golden/v2/ |
D | tensorflow.compat.pbtxt | 21 …argspec: "args=[\'bytes_or_text\', \'encoding\'], varargs=None, keywords=None, defaults=[\'utf-8\'… 25 …argspec: "args=[\'bytes_or_text\', \'encoding\'], varargs=None, keywords=None, defaults=[\'utf-8\'… 33 …argspec: "args=[\'bytes_or_text\', \'encoding\'], varargs=None, keywords=None, defaults=[\'utf-8\'…
|