/third_party/mindspore/mindspore/ccsrc/minddata/dataset/include/dataset/ |
D | data_helper.h | 60 const std::string &out_file = "") { 61 …rayIF(StringToChar(in_file), StringToChar(key), VectorStringToChar(value), StringToChar(out_file)); 71 const std::string &out_file = "") { 72 return UpdateArrayIF(StringToChar(in_file), StringToChar(key), value, StringToChar(out_file)); 82 const std::string &out_file = "") { 83 return UpdateArrayIF(StringToChar(in_file), StringToChar(key), value, StringToChar(out_file)); 93 const std::string &out_file = "") { 94 return UpdateArrayIF(StringToChar(in_file), StringToChar(key), value, StringToChar(out_file)); 104 const std::string &out_file = "") { 105 return UpdateArrayIF(StringToChar(in_file), StringToChar(key), value, StringToChar(out_file)); [all …]
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/ |
D | data_helper.cc | 36 … const std::vector<std::vector<char>> &value, const std::vector<char> &out_file) { in UpdateArrayIF() argument 38 …Array(CharToString(in_file), CharToString(key), VectorCharToString(value), CharToString(out_file)); in UpdateArrayIF() 42 … const std::vector<bool> &value, const std::vector<char> &out_file) { in UpdateArrayIF() argument 44 return jh.UpdateArray(CharToString(in_file), CharToString(key), value, CharToString(out_file)); in UpdateArrayIF() 48 … const std::vector<int8_t> &value, const std::vector<char> &out_file) { in UpdateArrayIF() argument 50 return jh.UpdateArray(CharToString(in_file), CharToString(key), value, CharToString(out_file)); in UpdateArrayIF() 54 … const std::vector<uint8_t> &value, const std::vector<char> &out_file) { in UpdateArrayIF() argument 56 return jh.UpdateArray(CharToString(in_file), CharToString(key), value, CharToString(out_file)); in UpdateArrayIF() 60 … const std::vector<int16_t> &value, const std::vector<char> &out_file) { in UpdateArrayIF() argument 62 return jh.UpdateArray(CharToString(in_file), CharToString(key), value, CharToString(out_file)); in UpdateArrayIF() [all …]
|
/third_party/python/Lib/ |
D | uu.py | 42 def encode(in_file, out_file, name=None, mode=None, *, backtick=False): argument 64 if out_file == '-': 65 out_file = sys.stdout.buffer 66 elif isinstance(out_file, str): 67 out_file = open(out_file, 'wb') 68 opened_files.append(out_file) 86 out_file.write(('begin %o %s\n' % ((mode & 0o777), name)).encode("ascii")) 89 out_file.write(binascii.b2a_uu(data, backtick=backtick)) 92 out_file.write(b'`\nend\n') 94 out_file.write(b' \nend\n') [all …]
|
/third_party/e2fsprogs/debugfs/ |
D | logdump.c | 69 static void dump_fc_block(FILE *out_file, char *buf, int blocksize, 84 FILE *out_file; in do_logdump() local 182 out_file = stdout; in do_logdump() 185 out_file = fopen(out_fn, "w"); in do_logdump() 186 if (!out_file) { in do_logdump() 213 dump_journal(argv[0], out_file, &journal_source); in do_logdump() 267 fprintf(out_file, "Using external journal found at %s\n", in do_logdump() 273 dump_journal(argv[0], out_file, &journal_source); in do_logdump() 279 if (out_file && (out_file != stdout)) in do_logdump() 280 fclose(out_file); in do_logdump() [all …]
|
/third_party/mindspore/mindspore/lite/src/common/ |
D | file_utils.h | 44 std::ofstream out_file; in WriteToTxt() local 45 out_file.open(file_path, std::ios::out); in WriteToTxt() 46 if (!out_file.is_open()) { in WriteToTxt() 52 out_file << real_data[i] << " "; in WriteToTxt() 54 out_file.close(); in WriteToTxt() 62 std::ofstream out_file; in WriteToBin() local 63 out_file.open(file_path.c_str(), std::ios::binary); in WriteToBin() 64 if (!out_file.good() || !out_file.is_open()) { in WriteToBin() 67 out_file.write(reinterpret_cast<char *>(data), size); in WriteToBin() 68 out_file.close(); in WriteToBin()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/shaders/ |
D | gen_mtl_internal_shaders.py | 101 with open('format_autogen.h', 'wt') as out_file: 102 out_file.write(shader_autogen_header) 103 out_file.close() 128 with open('mtl_default_shaders_src_autogen.inc', 'wt') as out_file: 129 out_file.write(boilerplate_code) 130 out_file.write('\n') 131 out_file.write('// C++ string version of combined Metal default shaders.\n\n') 132 out_file.write('\n\nstatic char gDefaultMetallibSrc[] = R"(\n') 133 out_file.write(final_combined_src_string.decode("utf-8")) 134 out_file.write('\n') [all …]
|
/third_party/skia/third_party/externals/brotli/python/tests/ |
D | compressor_test.py | 28 with open(temp_uncompressed, 'wb') as out_file: 30 out_file.write(brotli.decompress(in_file.read())) 36 with open(temp_compressed, 'wb') as out_file: 38 out_file.write(self.compressor.process(in_file.read())) 39 out_file.write(self.compressor.finish()) 45 with open(temp_compressed, 'wb') as out_file: 49 out_file.write(self.compressor.process(data)) 50 out_file.write(self.compressor.finish()) 56 with open(temp_compressed, 'wb') as out_file: 60 out_file.write(self.compressor.process(data)) [all …]
|
D | compress_test.py | 22 with open(temp_uncompressed, 'wb') as out_file: 24 out_file.write(brotli.decompress(in_file.read(), **kwargs)) 29 with open(temp_compressed, 'wb') as out_file: 31 out_file.write(brotli.compress(in_file.read(), **kwargs))
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
D | wpa_debug.c | 35 static FILE *out_file = NULL; variable 79 if (out_file) in wpa_debug_print_timestamp() 80 fprintf(out_file, "%ld.%06u: ", (long) tv.sec, in wpa_debug_print_timestamp() 83 if (!out_file && !wpa_debug_syslog) in wpa_debug_print_timestamp() 306 if (out_file) { in wpa_printf() 308 vfprintf(out_file, fmt, ap); in wpa_printf() 309 fprintf(out_file, "\n"); in wpa_printf() 313 if (!wpa_debug_syslog && !out_file) { in wpa_printf() 472 if (out_file) { in _wpa_hexdump() 473 fprintf(out_file, "%s - hexdump(len=%lu):", in _wpa_hexdump() [all …]
|
/third_party/icu/tools/unicode/c/genprops/misc/ |
D | ucdcopy.py | 36 out_file = open(t, "w") 57 out_file.write("%04X%s\n" % (first, first_data)) 59 out_file.write("%04X..%04X%s\n" % (first, last, first_data)) 65 out_file.write(line) 66 out_file.write("\n") 81 out_file.write(line) 82 out_file.write("\n") 86 out_file.write("%04X%s\n" % (first, first_data)) 88 out_file.write("%04X..%04X%s\n" % (first, last, first_data)) 93 out_file.flush() [all …]
|
/third_party/icu/tools/unicode/py/ |
D | preparseucd.py | 1136 def WriteFieldsRangeProps(fields, start, end, props, out_file): argument 1139 out_file.write(";".join(fields)) 1140 out_file.write("\n") 1159 def WritePreparsedUCD(out_file): argument 1160 out_file.write("""# Preparsed UCD generated by ICU preparseucd.py 1164 out_file.write("ucd;%s\n\n" % _ucd_version) 1170 out_file.write(";".join(["property", prop[0]] + prop[1])) 1171 out_file.write("\n") 1172 out_file.write("\n") 1173 out_file.write(";".join(["binary"] + _binary_values["N"])) [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
D | wpa_debug.c | 65 static FILE *out_file = NULL; variable 79 if (out_file) { in wpa_debug_print_timestamp() 80 fprintf(out_file, "%ld.%06u: ", (long) tv.sec, in wpa_debug_print_timestamp() 303 if (out_file) { in wpa_printf() 304 vfprintf(out_file, fmt, ap); in wpa_printf() 305 fprintf(out_file, "\n"); in wpa_printf() 469 if (out_file) { in _wpa_hexdump() 470 fprintf(out_file, "%s - hexdump(len=%lu):", in _wpa_hexdump() 473 fprintf(out_file, " [NULL]"); in _wpa_hexdump() 476 fprintf(out_file, " %02x", buf[i]); in _wpa_hexdump() [all …]
|
/third_party/boost/libs/graph/example/ |
D | iohb.c | 753 FILE *out_file; in writeHB_mat_double() local 773 if ( (out_file = fopen( filename, "w")) == NULL ) { in writeHB_mat_double() 777 } else out_file = stdout; in writeHB_mat_double() 823 fprintf(out_file,"%-72s%-8s\n%14d%14d%14d%14d%14d\n",Title, Key, totcrd, in writeHB_mat_double() 825 fprintf(out_file,"%3s%11s%14d%14d%14d\n",Type," ", M, N, nz); in writeHB_mat_double() 826 fprintf(out_file,"%-16s%-16s%-20s", Ptrfmt, Indfmt, Valfmt); in writeHB_mat_double() 830 fprintf(out_file,"%-20s\n%-14s%d\n",Rhsfmt,Rhstype,Nrhs); in writeHB_mat_double() 831 } else fprintf(out_file,"\n"); in writeHB_mat_double() 840 fprintf(out_file,pformat,entry); in writeHB_mat_double() 841 if ( (i+1)%Ptrperline == 0 ) fprintf(out_file,"\n"); in writeHB_mat_double() [all …]
|
/third_party/skia/third_party/externals/angle2/scripts/ |
D | gen_proc_table.py | 189 with open(out_file_name_gles, 'w') as out_file: 198 out_file.write(output_cpp) 199 out_file.close() 232 with open(out_file_name_gl, 'w') as out_file: 241 out_file.write(output_cpp) 242 out_file.close() 267 with open(out_file_name_cl, 'w') as out_file: 275 out_file.write(output_cpp) 276 out_file.close() 278 with open(out_file_name_cl_map, 'w') as out_file: [all …]
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/util/ |
D | json_helper.cc | 46 std::string out_file = out_dir + "/" + std::to_string(index) + ".json"; in CreateAlbum() local 47 RETURN_IF_NOT_OK(UpdateValue(out_file, "image", v.ToString(), out_file)); in CreateAlbum() 66 const std::vector<std::string> &value, const std::string &out_file) { in UpdateArray() argument 84 if (out_file == "") { in UpdateArray() 89 std::ofstream o(out_file, std::ofstream::trunc); in UpdateArray() 101 …elper::RemoveKey(const std::string &in_file, const std::string &key, const std::string &out_file) { in RemoveKey() argument 119 if (out_file == "") { in RemoveKey() 124 std::ofstream o(out_file, std::ofstream::trunc); in RemoveKey()
|
D | json_helper.h | 58 const std::string &out_file = ""); 68 const std::string &out_file = "") { 87 if (out_file == "") { 92 std::ofstream o(out_file, std::ofstream::trunc); 112 const std::string &out_file = "") { 130 if (out_file == "") { 135 std::ofstream o(out_file, std::ofstream::trunc); 207 …Status RemoveKey(const std::string &in_file, const std::string &key, const std::string &out_file =…
|
/third_party/mindspore/mindspore/dataset/utils/ |
D | browse_dataset.py | 38 out_file=None argument 103 if out_file is not None: 104 assert isinstance(out_file, str), "out_file must be a str." 109 assert out_file is not None 148 if out_file: 149 logger.info("Saving image file with name: " + out_file + "...") 150 cv2.imwrite(out_file, draw_image) 151 os.chmod(out_file, 0o600)
|
/third_party/mindspore/mindspore/lite/cmake/ |
D | merge.cmake | 8 set(out_file ${OUT_FILE_NAME}) variable 9 file(REMOVE ${out_file}) 10 file(WRITE ${out_file} "") 13 file(APPEND ${out_file} ${READ_CC_CONTEXT})
|
/third_party/skia/buildtools/checkdeps/ |
D | graphdeps.py | 45 out_file, argument 90 self.out_file = out_file 123 out = pipe.open(self.out_file, 'w') 125 out = open(self.out_file, 'w') 134 out = pipe.open(self.out_file, 'w') 368 if not options.out_file.endswith(options.out_format): 369 options.out_file += '.' + options.out_format 381 out_file=options.out_file,
|
/third_party/skia/build/fuchsia/skqp/ |
D | append_assets_to_manifest | 43 out_file = open(manifest, 'w') variable 48 out_file.write(base_line) 67 out_file.write('data%s=' % dest) 68 out_file.write('%s\n' % source) 72 out_file.close()
|
/third_party/flutter/skia/third_party/externals/angle2/scripts/ |
D | gen_proc_table.py | 159 with open(out_file_name_gles, 'w') as out_file: 169 out_file.write(output_cpp) 170 out_file.close() 208 with open(out_file_name_gl, 'w') as out_file: 218 out_file.write(output_cpp) 219 out_file.close()
|
/third_party/spirv-tools/tools/opt/ |
D | opt.cpp | 566 const char** out_file, 579 const char** out_file, in ParseOconfigFlag() argument 606 out_file, validator_options, optimizer_options); in ParseOconfigFlag() 661 const char** out_file, in ParseFlags() argument 676 if (!*out_file && argi + 1 < argc) { in ParseFlags() 677 *out_file = argv[++argi]; in ParseFlags() 693 ParseOconfigFlag(argv[0], cur_arg, optimizer, in_file, out_file, in ParseFlags() 787 const char* out_file = nullptr; in main() local 796 OptStatus status = ParseFlags(argc, argv, &optimizer, &in_file, &out_file, in main() 804 if (out_file == nullptr) { in main() [all …]
|
/third_party/skia/third_party/externals/angle2/src/tests/restricted_traces/ |
D | gen_restricted_traces.py | 222 with open(gni_file, "w") as out_file: 223 out_file.write(gni_data) 321 with open(header_file, "w") as out_file: 322 out_file.write(header_data) 328 with open(source_file, "w") as out_file: 329 out_file.write(source_data) 335 with open('.gitignore', 'w') as out_file: 336 out_file.write('\n'.join(sorted(ignores)))
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/opt/ |
D | opt.cpp | 589 const char** out_file, 602 const char** out_file, in ParseOconfigFlag() argument 629 out_file, validator_options, optimizer_options); in ParseOconfigFlag() 684 const char** out_file, in ParseFlags() argument 699 if (!*out_file && argi + 1 < argc) { in ParseFlags() 700 *out_file = argv[++argi]; in ParseFlags() 716 ParseOconfigFlag(argv[0], cur_arg, optimizer, in_file, out_file, in ParseFlags() 810 const char* out_file = nullptr; in main() local 819 OptStatus status = ParseFlags(argc, argv, &optimizer, &in_file, &out_file, in main() 827 if (out_file == nullptr) { in main() [all …]
|
/third_party/skia/third_party/externals/spirv-tools/tools/opt/ |
D | opt.cpp | 589 const char** out_file, 602 const char** out_file, in ParseOconfigFlag() argument 629 out_file, validator_options, optimizer_options); in ParseOconfigFlag() 684 const char** out_file, in ParseFlags() argument 699 if (!*out_file && argi + 1 < argc) { in ParseFlags() 700 *out_file = argv[++argi]; in ParseFlags() 716 ParseOconfigFlag(argv[0], cur_arg, optimizer, in_file, out_file, in ParseFlags() 810 const char* out_file = nullptr; in main() local 819 OptStatus status = ParseFlags(argc, argv, &optimizer, &in_file, &out_file, in main() 827 if (out_file == nullptr) { in main() [all …]
|