Home
last modified time | relevance | path

Searched refs:bytes_data (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython3/Lib/test/test_importlib/resources/
Dutil.py122 bytes_data = io.BytesIO(b'Hello, world!')
123 package = create_package(file=bytes_data, path=FileNotFoundError())
131 bytes_data = io.BytesIO(b'Hello, world!')
134 package = create_package(file=bytes_data, path=path)
Dtest_compatibilty_files.py17 bytes_data = io.BytesIO(b'Hello, world!')
19 file=bytes_data,
/external/python/cpython3/Lib/test/
Dtest_base64.py103 def check_other_types(self, f, bytes_data, expected): argument
105 b = bytearray(bytes_data)
108 eq(b, bytes_data)
109 eq(f(memoryview(bytes_data)), expected)
110 eq(f(array('B', bytes_data)), expected)
112 self.check_nonbyte_element_format(base64.b64encode, bytes_data)
113 self.check_multidimensional(base64.b64encode, bytes_data)
117 bytes_data = data + padding # Make sure cast works
118 shape = (len(bytes_data) // 2, 2)
119 multidimensional = memoryview(bytes_data).cast('B', shape)
[all …]
/external/tensorflow/tensorflow/core/ir/types/
Ddialect.cc875 std::string bytes_data = absl::HexStringToBytes(data.substr(2)); in parse() local
876 return TensorProtoAttr::get(type, bytes_data); in parse()
/external/python/cpython3/Lib/importlib/
D_bootstrap_external.py1128 bytes_data = memoryview(data)[16:]
1155 return _compile_bytecode(bytes_data, name=fullname,
/external/tensorflow/tensorflow/compiler/mlir/lite/ir/
Dtfl_ops.cc3974 std::string bytes_data = absl::HexStringToBytes(data.substr(2)); in parse() local
3975 return ConstBytesAttr::get(parser.getBuilder().getContext(), bytes_data); in parse()