Home
last modified time | relevance | path

Searched refs:in_file (Results 1 – 25 of 66) sorted by relevance

123

/third_party/mindspore/mindspore/ccsrc/minddata/dataset/include/dataset/
Ddata_helper.h59 …Status UpdateArray(const std::string &in_file, const std::string &key, const std::vector<std::stri…
61 …return UpdateArrayIF(StringToChar(in_file), StringToChar(key), VectorStringToChar(value), StringTo…
70 …Status UpdateArray(const std::string &in_file, const std::string &key, const std::vector<bool> &va…
72 return UpdateArrayIF(StringToChar(in_file), StringToChar(key), value, StringToChar(out_file));
81 …Status UpdateArray(const std::string &in_file, const std::string &key, const std::vector<int8_t> &…
83 return UpdateArrayIF(StringToChar(in_file), StringToChar(key), value, StringToChar(out_file));
92 …Status UpdateArray(const std::string &in_file, const std::string &key, const std::vector<uint8_t> …
94 return UpdateArrayIF(StringToChar(in_file), StringToChar(key), value, StringToChar(out_file));
103 …Status UpdateArray(const std::string &in_file, const std::string &key, const std::vector<int16_t> …
105 return UpdateArrayIF(StringToChar(in_file), StringToChar(key), value, StringToChar(out_file));
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/
Ddata_helper.cc35 Status DataHelper::UpdateArrayIF(const std::vector<char> &in_file, const std::vector<char> &key, in UpdateArrayIF() argument
38 …return jh.UpdateArray(CharToString(in_file), CharToString(key), VectorCharToString(value), CharToS… in UpdateArrayIF()
41 Status DataHelper::UpdateArrayIF(const std::vector<char> &in_file, const std::vector<char> &key, in UpdateArrayIF() argument
44 return jh.UpdateArray(CharToString(in_file), CharToString(key), value, CharToString(out_file)); in UpdateArrayIF()
47 Status DataHelper::UpdateArrayIF(const std::vector<char> &in_file, const std::vector<char> &key, in UpdateArrayIF() argument
50 return jh.UpdateArray(CharToString(in_file), CharToString(key), value, CharToString(out_file)); in UpdateArrayIF()
53 Status DataHelper::UpdateArrayIF(const std::vector<char> &in_file, const std::vector<char> &key, in UpdateArrayIF() argument
56 return jh.UpdateArray(CharToString(in_file), CharToString(key), value, CharToString(out_file)); in UpdateArrayIF()
59 Status DataHelper::UpdateArrayIF(const std::vector<char> &in_file, const std::vector<char> &key, in UpdateArrayIF() argument
62 return jh.UpdateArray(CharToString(in_file), CharToString(key), value, CharToString(out_file)); in UpdateArrayIF()
[all …]
/third_party/python/Lib/distutils/tests/
Dtest_text_file.py62 in_file = TextFile(filename, strip_comments=0, skip_blanks=0,
65 test_input(1, "no processing", in_file, result1)
67 in_file.close()
69 in_file = TextFile(filename, strip_comments=1, skip_blanks=0,
72 test_input(2, "strip comments", in_file, result2)
74 in_file.close()
76 in_file = TextFile(filename, strip_comments=0, skip_blanks=1,
79 test_input(3, "strip blanks", in_file, result3)
81 in_file.close()
83 in_file = TextFile(filename)
[all …]
/third_party/python/Lib/
Duu.py42 def encode(in_file, out_file, name=None, mode=None, *, backtick=False): argument
49 if in_file == '-':
50 in_file = sys.stdin.buffer
51 elif isinstance(in_file, str):
53 name = os.path.basename(in_file)
56 mode = os.stat(in_file).st_mode
59 in_file = open(in_file, 'rb')
60 opened_files.append(in_file)
87 data = in_file.read(45)
90 data = in_file.read(45)
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/util/
Djson_helper.h57 …Status UpdateArray(const std::string &in_file, const std::string &key, const std::vector<std::stri…
67 …Status UpdateArray(const std::string &in_file, const std::string &key, const std::vector<T> &value,
70 Path in = Path(in_file);
73 RETURN_IF_NOT_OK(RealPath(in_file));
75 std::ifstream in_stream(in_file);
76 MS_LOG(INFO) << "Filename: " << in_file << ".";
80 RETURN_STATUS_UNEXPECTED("Invalid file, failed to open json file: " + in_file + in catch()
88 std::ofstream o(in_file, std::ofstream::trunc);
111 Status UpdateValue(const std::string &in_file, const std::string &key, const T &value,
114 Path in = Path(in_file);
[all …]
Djson_helper.cc65 Status JsonHelper::UpdateArray(const std::string &in_file, const std::string &key, in UpdateArray() argument
68 Path in = Path(in_file); in UpdateArray()
71 RETURN_IF_NOT_OK(RealPath(in_file)); in UpdateArray()
73 std::ifstream in_stream(in_file); in UpdateArray()
74 MS_LOG(INFO) << "Filename: " << in_file << "."; in UpdateArray()
78 RETURN_STATUS_UNEXPECTED("Invalid file, failed to open json file: " + in_file + in UpdateArray()
84 std::ofstream o(in_file, std::ofstream::trunc); in UpdateArray()
106 Status JsonHelper::RemoveKey(const std::string &in_file, const std::string &key, const std::string … in RemoveKey() argument
108 Path in = Path(in_file); in RemoveKey()
111 RETURN_IF_NOT_OK(RealPath(in_file)); in RemoveKey()
[all …]
/third_party/boost/libs/graph/example/
Diohb.c252 FILE *in_file; in readHB_info() local
262 if ( (in_file = fopen( filename, "r")) == NULL ) { in readHB_info()
267 readHB_header(in_file, Title, Key, mat_type, &Nrow, &Ncol, &Nnzero, Nrhs, in readHB_info()
270 fclose(in_file); in readHB_info()
297 int readHB_header(FILE* in_file, char* Title, char* Key, char* Type, in readHB_header() argument
310 fgets(line, BUFSIZ, in_file); in readHB_header()
318 fgets(line, BUFSIZ, in_file); in readHB_header()
328 fgets(line, BUFSIZ, in_file); in readHB_header()
340 fgets(line, BUFSIZ, in_file); in readHB_header()
358 fgets(line, BUFSIZ, in_file); in readHB_header()
[all …]
Dactor_clustering.cpp132 std::string in_file; in main() local
147 in_file = argv[on_arg]; in main()
173 if (in_file.empty() || out_file.empty() || threshold < 0) in main()
190 std::ifstream in(in_file.c_str()); in main()
193 std::cerr << "Unable to open file \"" << in_file in main()
/third_party/skia/third_party/externals/brotli/python/tests/
Dcompressor_test.py29 with open(temp_compressed, 'rb') as in_file:
30 out_file.write(brotli.decompress(in_file.read()))
37 with open(test_data, 'rb') as in_file:
38 out_file.write(self.compressor.process(in_file.read()))
46 with open(test_data, 'rb') as in_file:
47 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
57 with open(test_data, 'rb') as in_file:
58 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
Dcompress_test.py23 with open(temp_compressed, 'rb') as in_file:
24 out_file.write(brotli.decompress(in_file.read(), **kwargs))
30 with open(test_data, 'rb') as in_file:
31 out_file.write(brotli.compress(in_file.read(), **kwargs))
/third_party/e2fsprogs/contrib/android/
Dext2simg.c30 char *in_file; member
74 if (sparse_file_add_file(s, params.in_file, offset, len, chunk_start) < 0) in add_chunk()
109 static struct sparse_file *ext_to_sparse(const char *in_file) in ext_to_sparse() argument
117 retval = ext2fs_open(in_file, 0, 0, 0, unix_io_manager, &fs); in ext_to_sparse()
119 ext2fs_fatal(retval, "while reading %s", in_file); in ext_to_sparse()
123 ext2fs_fatal(retval, "while reading block bitmap of %s", in_file); in ext_to_sparse()
204 params.in_file = strdup(argv[optind++]); in main()
206 params.overwrite_input = same_file(params.in_file, params.out_file); in main()
208 s = ext_to_sparse(params.in_file); in main()
218 free(params.in_file); in main()
/third_party/icu/tools/unicode/py/
Dpreparseucd.py358 def ReadUCDLines(in_file, want_ranges=True, want_other=False, argument
364 for line in in_file:
430 def ParsePropertyAliases(in_file): argument
440 for data in ReadUCDLines(in_file, want_ranges=False,
540 def ParsePropertyValueAliases(in_file): argument
542 for data in ReadUCDLines(in_file, want_ranges=False,
603 def ParseBlocks(in_file): argument
604 for data in ReadUCDLines(in_file, want_missing=True):
626 def ParseUnicodeData(in_file): argument
630 for data in ReadUCDLines(in_file, want_missing=True):
[all …]
/third_party/mindspore/mindspore/lite/micro/example/mnist_stm32f746/mnist_stm32f746/benchmark/
Dcalib_output.cc37 std::ifstream in_file(calib_data_path); in ReadCalibData() local
38 if (!in_file.good()) { in ReadCalibData()
42 if (!in_file.is_open()) { in ReadCalibData()
44 in_file.close(); in ReadCalibData()
47 while (!in_file.eof()) { in ReadCalibData()
49 getline(in_file, line); in ReadCalibData()
63 getline(in_file, line); in ReadCalibData()
75 in_file.close(); in ReadCalibData()
/third_party/mindspore/mindspore/lite/micro/example/mnist_x86/benchmark/
Dcalib_output.cc37 std::ifstream in_file(calib_data_path); in ReadCalibData() local
38 if (!in_file.good()) { in ReadCalibData()
42 if (!in_file.is_open()) { in ReadCalibData()
44 in_file.close(); in ReadCalibData()
47 while (!in_file.eof()) { in ReadCalibData()
49 getline(in_file, line); in ReadCalibData()
63 getline(in_file, line); in ReadCalibData()
75 in_file.close(); in ReadCalibData()
/third_party/skia/third_party/externals/spirv-tools/tools/lint/
Dlint.cpp39 LintStatus ParseFlags(int argc, const char** argv, const char** in_file) { in ParseFlags() argument
47 *in_file = argv[1]; in ParseFlags()
54 const char* in_file = nullptr; in main() local
61 LintStatus status = ParseFlags(argc, argv, &in_file); in main()
68 if (!ReadBinaryFile(in_file, &binary)) { in main()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/lint/
Dlint.cpp39 LintStatus ParseFlags(int argc, const char** argv, const char** in_file) { in ParseFlags() argument
47 *in_file = argv[1]; in ParseFlags()
54 const char* in_file = nullptr; in main() local
61 LintStatus status = ParseFlags(argc, argv, &in_file); in main()
68 if (!ReadBinaryFile(in_file, &binary)) { in main()
/third_party/boost/tools/build/example/customization/
Dinline_file.py40 in_file = open(file_to_include, "r"); variable
41 variable_name = strip(in_file.readline())
42 out_file.write("extern const char %s[] = {\n%s};\n\n" % (variable_name, quote_file(in_file)))
43 in_file.close()
/third_party/mindspore/mindspore/lite/tools/cropper/
Dcropper_utils.cc35 int ValidFile(std::ifstream &in_file, const std::string &file_path) { in ValidFile() argument
36 if (!in_file.good()) { in ValidFile()
42 if (!in_file.is_open()) { in ValidFile()
45 in_file.close(); in ValidFile()
Dcropper.cc28 std::ifstream in_file(this->flags_->package_file_); in ReadPackage() local
29 if (ValidFile(in_file, this->flags_->package_file_) == RET_OK) { in ReadPackage()
30 in_file.close(); in ReadPackage()
172 std::ifstream in_file(this->flags_->config_file_); in GetOpMatchFiles() local
173 if (ValidFile(in_file, this->flags_->config_file_) != RET_OK) { in GetOpMatchFiles()
178 while (!in_file.eof()) { in GetOpMatchFiles()
179 in_file.getline(buf, kBufSize); in GetOpMatchFiles()
219 in_file.close(); in GetOpMatchFiles()
/third_party/spirv-tools/tools/opt/
Dopt.cpp565 spvtools::Optimizer* optimizer, const char** in_file,
578 spvtools::Optimizer* optimizer, const char** in_file, in ParseOconfigFlag() argument
605 ParseFlags(static_cast<int>(flags.size()), new_argv, optimizer, in_file, in ParseOconfigFlag()
660 spvtools::Optimizer* optimizer, const char** in_file, in ParseFlags() argument
684 if (!*in_file) { in ParseFlags()
685 *in_file = cur_arg; in ParseFlags()
693 ParseOconfigFlag(argv[0], cur_arg, optimizer, in_file, out_file, in ParseFlags()
766 if (!*in_file) { in ParseFlags()
767 *in_file = cur_arg; in ParseFlags()
786 const char* in_file = nullptr; in main() local
[all …]
/third_party/flutter/skia/third_party/externals/spirv-tools/tools/opt/
Dopt.cpp81 const char* in_file = nullptr; in main() local
164 if (!in_file) { in main()
165 in_file = cur_arg; in main()
175 if (!in_file) { in main()
176 in_file = cur_arg; in main()
190 if (!ReadFile<uint32_t>(in_file, "rb", &binary)) return 1; in main()
/third_party/skia/third_party/externals/tint/fuzzers/
Dgenerate_wgsl_corpus.py52 for in_file in list_wgsl_files(input_dir):
53 if in_file.endswith(".expected.wgsl"):
55 out_file = in_file[len(input_dir) + 1:].replace(os.sep, '_')
56 shutil.copy(in_file, corpus_dir + os.sep + out_file)
Dgenerate_spirv_corpus.py65 for in_file in list_spvasm_files(input_dir):
66 if in_file.endswith(".expected.spvasm"):
69 in_file[len(input_dir) + 1:]
74 in_file,
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/opt/
Dopt.cpp588 spvtools::Optimizer* optimizer, const char** in_file,
601 spvtools::Optimizer* optimizer, const char** in_file, in ParseOconfigFlag() argument
628 ParseFlags(static_cast<int>(flags.size()), new_argv, optimizer, in_file, in ParseOconfigFlag()
683 spvtools::Optimizer* optimizer, const char** in_file, in ParseFlags() argument
707 if (!*in_file) { in ParseFlags()
708 *in_file = cur_arg; in ParseFlags()
716 ParseOconfigFlag(argv[0], cur_arg, optimizer, in_file, out_file, in ParseFlags()
789 if (!*in_file) { in ParseFlags()
790 *in_file = cur_arg; in ParseFlags()
809 const char* in_file = nullptr; in main() local
[all …]
/third_party/skia/third_party/externals/spirv-tools/tools/opt/
Dopt.cpp588 spvtools::Optimizer* optimizer, const char** in_file,
601 spvtools::Optimizer* optimizer, const char** in_file, in ParseOconfigFlag() argument
628 ParseFlags(static_cast<int>(flags.size()), new_argv, optimizer, in_file, in ParseOconfigFlag()
683 spvtools::Optimizer* optimizer, const char** in_file, in ParseFlags() argument
707 if (!*in_file) { in ParseFlags()
708 *in_file = cur_arg; in ParseFlags()
716 ParseOconfigFlag(argv[0], cur_arg, optimizer, in_file, out_file, in ParseFlags()
789 if (!*in_file) { in ParseFlags()
790 *in_file = cur_arg; in ParseFlags()
809 const char* in_file = nullptr; in main() local
[all …]

123