Searched refs:bytes_or_text (Results 1 – 3 of 3) sorted by relevance
/external/tensorflow/tensorflow/python/util/ |
D | compat.py | 42 def as_bytes(bytes_or_text, encoding='utf-8'): argument 55 if isinstance(bytes_or_text, _six.text_type): 56 return bytes_or_text.encode(encoding) 57 elif isinstance(bytes_or_text, bytes): 58 return bytes_or_text 61 (bytes_or_text,)) 64 def as_text(bytes_or_text, encoding='utf-8'): argument 77 if isinstance(bytes_or_text, _six.text_type): 78 return bytes_or_text 79 elif isinstance(bytes_or_text, bytes): [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\'…
|