/external/tensorflow/tensorflow/contrib/bigtable/python/kernel_tests/ |
D | bigtable_ops_test.py | 37 return [(compat.as_bytes(i[0]), compat.as_bytes(i[1])) for i in values] 71 compat.as_bytes(want), compat.as_bytes(output), 94 compat.as_bytes(want), compat.as_bytes(output[0]), 98 compat.as_bytes(want), compat.as_bytes(output[1]), 134 compat.as_bytes(elem[0]), compat.as_bytes(output[0]), 136 (i, compat.as_bytes(elem[0]), compat.as_bytes(output[0]))) 138 compat.as_bytes(elem[1]), compat.as_bytes(output[1]), 140 (i, compat.as_bytes(elem[1]), compat.as_bytes(output[1]))) 152 compat.as_bytes(self.COMMON_ROW_KEYS[0]), compat.as_bytes(output), 153 "Unequal keys: want: %s, got: %s" % (compat.as_bytes( [all …]
|
/external/u-boot/fs/yaffs2/ |
D | yaffs_tagscompat.c | 34 unsigned char *b = ((union yaffs_tags_union *)tags)->as_bytes; in yaffs_calc_tags_ecc() 61 unsigned char *b = ((union yaffs_tags_union *)tags)->as_bytes; in yaffs_check_tags_ecc() 88 spare_ptr->tb0 = tu->as_bytes[0]; in yaffs_load_tags_to_spare() 89 spare_ptr->tb1 = tu->as_bytes[1]; in yaffs_load_tags_to_spare() 90 spare_ptr->tb2 = tu->as_bytes[2]; in yaffs_load_tags_to_spare() 91 spare_ptr->tb3 = tu->as_bytes[3]; in yaffs_load_tags_to_spare() 92 spare_ptr->tb4 = tu->as_bytes[4]; in yaffs_load_tags_to_spare() 93 spare_ptr->tb5 = tu->as_bytes[5]; in yaffs_load_tags_to_spare() 94 spare_ptr->tb6 = tu->as_bytes[6]; in yaffs_load_tags_to_spare() 95 spare_ptr->tb7 = tu->as_bytes[7]; in yaffs_load_tags_to_spare() [all …]
|
/external/tensorflow/tensorflow/python/lib/io/ |
D | file_io.py | 85 compat.as_bytes(self.__name), 1024 * 512, status) 94 compat.as_bytes(self.__name), compat.as_bytes(self.__mode), status) 98 return compat.as_bytes(val) 111 compat.as_bytes(file_content), self._writable_file, status) 283 pywrap_tensorflow.FileExists(compat.as_bytes(path), status) 315 pywrap_tensorflow.DeleteFile(compat.as_bytes(path), status) 389 compat.as_bytes(pattern), status) 397 compat.as_bytes(single_filename), status) 433 pywrap_tensorflow.CreateDir(compat.as_bytes(path), status) 464 pywrap_tensorflow.RecursivelyCreateDir(compat.as_bytes(path), status) [all …]
|
D | tf_record.py | 131 compat.as_bytes( 174 compat.as_bytes(path), 0, compat.as_bytes(compression_type), status) 218 compat.as_bytes(path), options._as_record_writer_options(), status)
|
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/ |
D | estimator_test.py | 966 compat.as_bytes(tmpdir), compat.as_bytes('my_extra_file')) 973 compat.as_bytes(tmpdir), compat.as_bytes('export')) 982 compat.as_bytes(export_dir), 983 compat.as_bytes('saved_model.pb')))) 987 compat.as_bytes(export_dir), compat.as_bytes('variables')))) 991 compat.as_bytes(export_dir), 992 compat.as_bytes('variables/variables.index')))) 996 compat.as_bytes(export_dir), 997 compat.as_bytes('variables/variables.data-00000-of-00001')))) 1002 compat.as_bytes(export_dir), compat.as_bytes('assets')))) [all …]
|
/external/tensorflow/tensorflow/python/data/kernel_tests/ |
D | list_files_test.py | 60 compat.as_bytes(path.join(self.tmp_dir, filename)) 74 compat.as_bytes(path.join(self.tmp_dir, filename)) 86 compat.as_bytes(path.join(self.tmp_dir, filename)) 128 compat.as_bytes(path.join(self.tmp_dir, filename)) 141 compat.as_bytes(path.join(self.tmp_dir, filename)) 154 compat.as_bytes(path.join(self.tmp_dir, filename)) 180 compat.as_bytes(path.join(self.tmp_dir, filename))) 181 actual_filenames.append(compat.as_bytes(self.evaluate(next_element()))) 197 compat.as_bytes(path.join(self.tmp_dir, filename)) 211 compat.as_bytes(path.join(self.tmp_dir, filename))
|
/external/tensorflow/tensorflow/python/distribute/cluster_resolver/ |
D | tpu_cluster_resolver.py | 101 return compat.as_bytes(resp.read()) 106 if (self._tpu == compat.as_bytes('') or 107 self._tpu == compat.as_bytes('local') or 108 self._tpu.startswith(compat.as_bytes('/bns')) or 109 self._tpu.startswith(compat.as_bytes('localhost:')) or 110 self._tpu.startswith(compat.as_bytes('grpc://')) or 111 self._tpu.startswith(compat.as_bytes('uptc://'))): 251 self._tpu = compat.as_bytes(tpu) # self._tpu is always bytes 289 self._tpu = compat.as_bytes(tpu) # self._tpu is always bytes 512 target = compat.as_bytes(self._server.target) [all …]
|
D | tpu_cluster_resolver_test.py | 450 compat.as_bytes('grpc://10.120.27.5:8470'), 451 compat.as_bytes(TPUClusterResolver._gkeEndpoints())) 455 compat.as_bytes('grpc://10.120.27.5:8470'), 456 compat.as_bytes(resolver.master())) 477 compat.as_bytes('grpc://10.120.27.5:8470,' 481 compat.as_bytes(TPUClusterResolver._gkeEndpoints())) 485 compat.as_bytes('grpc://10.120.27.5:8470'), 486 compat.as_bytes(resolver.master()))
|
/external/tensorflow/tensorflow/python/saved_model/ |
D | loader_impl.py | 56 compat.as_bytes(export_dir), 57 compat.as_bytes(constants.SAVED_MODEL_FILENAME_PBTXT)) 60 compat.as_bytes(export_dir), 61 compat.as_bytes(constants.SAVED_MODEL_FILENAME_PB)) 121 compat.as_bytes(export_dir), compat.as_bytes(constants.ASSETS_DIRECTORY)) 128 compat.as_bytes(assets_directory), 129 compat.as_bytes(asset_proto.filename))
|
D | builder_impl.py | 408 compat.as_bytes(self._export_dir), 409 compat.as_bytes(constants.SAVED_MODEL_FILENAME_PBTXT)) 413 compat.as_bytes(self._export_dir), 414 compat.as_bytes(constants.SAVED_MODEL_FILENAME_PB)) 703 unique_filename = compat.as_bytes("_").join( 704 [compat.as_bytes(asset_filename), compat.as_bytes(str(i))]) 755 compat.as_bytes(assets_destination_dir), 756 compat.as_bytes(asset_basename))
|
D | saved_model_test.py | 70 compat.as_bytes(test.get_temp_dir()), compat.as_bytes(asset_subdir)) 73 compat.as_bytes(parent_dir), compat.as_bytes(asset_file_name)) 92 compat.as_bytes(export_dir), 93 compat.as_bytes(constants.ASSETS_DIRECTORY), 94 compat.as_bytes(expected_asset_file_name)) 655 compat.as_bytes(test.get_temp_dir()), compat.as_bytes("ignored.txt")) 672 compat.as_bytes(export_dir), 673 compat.as_bytes(constants.ASSETS_DIRECTORY), 674 compat.as_bytes("ignored.txt")) 742 compat.as_bytes(export_dir), [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | reader_ops_test.py | 87 return compat.as_bytes("Record %d of file %d" % (r, f)) 307 self.assertAllEqual(compat.as_bytes(self._filenames[index]), k) 353 return compat.as_bytes("%d: %d" % (f, l)) 426 return compat.as_bytes(str(f * 2 + r) * self._record_bytes) 434 return compat.as_bytes(record_str) 467 f.write(compat.as_bytes(all_records_str)) 501 f.write(compat.as_bytes(all_records_str)) 519 f.write(compat.as_bytes(all_records_str)) 771 self.assertAllEqual(compat.as_bytes(k), compat.as_bytes(str(i))) 773 compat.as_bytes(v), compat.as_bytes(str(chr(ord("a") + i)))) [all …]
|
D | io_ops_test.py | 38 contents = compat.as_bytes(contents) 51 contents = compat.as_bytes(contents) 67 contents = compat.as_bytes(contents) 80 compat.as_bytes(files[i].name) for i in range(len(files)) 98 io_ops.matching_files(f.name).eval(), compat.as_bytes(f.name))
|
D | cond_v2_test.py | 958 self.assertEqual(compat.as_bytes(""), container(v0)) 959 self.assertEqual(compat.as_bytes(""), container(q0.queue_ref)) 974 self.assertEqual(compat.as_bytes("l1"), container(v1)) 975 self.assertEqual(compat.as_bytes("l1"), container(q1.queue_ref)) 976 self.assertEqual(compat.as_bytes("l2t"), container(v2)) 977 self.assertEqual(compat.as_bytes("l2t"), container(q2.queue_ref)) 978 self.assertEqual(compat.as_bytes("l1"), container(v3)) 979 self.assertEqual(compat.as_bytes("l1"), container(q3.queue_ref)) 996 self.assertEqual(compat.as_bytes("l1"), container(v1)) 997 self.assertEqual(compat.as_bytes("l1"), container(q1.queue_ref)) [all …]
|
/external/tensorflow/tensorflow/python/util/ |
D | compat.py | 42 def as_bytes(bytes_or_text, encoding='utf-8'): function 87 as_str = as_bytes 88 tf_export('compat.as_bytes', 'compat.as_str')(as_bytes) 92 tf_export('compat.as_bytes')(as_bytes)
|
/external/tensorflow/tensorflow/contrib/saved_model/python/saved_model/ |
D | reader.py | 45 compat.as_bytes(saved_model_dir), 46 compat.as_bytes(constants.SAVED_MODEL_FILENAME_PBTXT)) 49 compat.as_bytes(saved_model_dir), 50 compat.as_bytes(constants.SAVED_MODEL_FILENAME_PB))
|
/external/tensorflow/tensorflow/python/tpu/ |
D | datasets_test.py | 67 contents.append(compat.as_bytes('%d: %d' % (i, j))) 82 retrieved_values.append(compat.as_bytes(self._sess.run(get_next))) 92 record = compat.as_bytes('Record %d of file %d' % (j, i)) 107 retrieved_values.append(compat.as_bytes(self._sess.run(get_next))) 119 record = compat.as_bytes('Record %d of file %d' % (j, i)) 135 retrieved_values.append(compat.as_bytes(self._sess.run(get_next))) 142 return compat.as_bytes('%04d-%04d' % (i, j)) 169 retrieved_values.append(compat.as_bytes(self._sess.run(get_next)))
|
/external/tensorflow/tensorflow/contrib/meta_graph_transform/ |
D | meta_graph_transform_test.py | 174 compat.as_bytes('/foo'), 175 compat.as_bytes('/bar'), 176 compat.as_bytes('/baz') 179 compat.as_bytes('100 10 0,100:0,10'), 180 compat.as_bytes('150 11 0,150:0,11'), 181 compat.as_bytes('101 12 0,101:0,12') 514 [compat.as_bytes(compat.as_str_any(_make_asset_file_def_any('node1'))), 515 compat.as_bytes(compat.as_str_any(_make_asset_file_def_any('node2'))), 516 compat.as_bytes(compat.as_str_any(_make_asset_file_def_any('node3'))), 517 compat.as_bytes(compat.as_str_any(_make_asset_file_def_any('node4'))), [all …]
|
/external/tensorflow/tensorflow/python/tools/ |
D | saved_model_utils.py | 45 compat.as_bytes(saved_model_dir), 46 compat.as_bytes(constants.SAVED_MODEL_FILENAME_PBTXT)) 49 compat.as_bytes(saved_model_dir), 50 compat.as_bytes(constants.SAVED_MODEL_FILENAME_PB))
|
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/ |
D | matching_files_test.py | 73 compat.as_bytes(os.path.join(self.tmp_dir, filename)) 89 compat.as_bytes(os.path.join(self.tmp_dir, filename)) 105 compat.as_bytes(os.path.join(self.tmp_dir, filename)) 135 compat.as_bytes(filename) 142 actual_filenames.append(compat.as_bytes(self.evaluate(next_element())))
|
/external/tensorflow/tensorflow/tools/graph_transforms/ |
D | __init__.py | 45 inputs_string = compat.as_bytes(",".join(inputs)) 46 outputs_string = compat.as_bytes(",".join(outputs)) 47 transforms_string = compat.as_bytes(" ".join(transforms))
|
/external/tensorflow/tensorflow/contrib/session_bundle/ |
D | exporter.py | 63 compat.as_bytes(export_dir_path), compat.as_bytes(basename)) 269 compat.as_bytes(export_dir_base), 270 compat.as_bytes(constants.VERSION_FORMAT_SPECIFIER % global_step)) 294 compat.as_bytes(tmp_export_dir), 295 compat.as_bytes(constants.ASSETS_DIRECTORY))
|
/external/flatbuffers/rust/flatbuffers/src/ |
D | vtable.rs | 31 self.as_bytes().eq(other.as_bytes()) in eq() 69 pub fn as_bytes(&self) -> &[u8] { in as_bytes() method
|
/external/tensorflow/tensorflow/python/saved_model/model_utils/ |
D | export_utils.py | 216 compat.as_bytes(export_dir_base), compat.as_bytes(str(timestamp))) 245 compat.as_bytes(dirname), compat.as_bytes('temp-{}'.format(basename)))
|
/external/tensorflow/tensorflow/contrib/feature_column/python/feature_column/ |
D | sequence_feature_column_integration_test.py | 50 feat.bytes_list.value.extend([compat.as_bytes(str(val))] * val) 119 10, [3, 4], [compat.as_bytes(x) for x in 'acg']) 125 [compat.as_bytes(x) for x in 'acg']) 133 fname, [3, 4], [compat.as_bytes(x) for x in 'acg'])
|