Home
last modified time | relevance | path

Searched refs:json_file (Results 1 – 25 of 43) sorted by relevance

12

/third_party/mindspore/mindspore/_extends/parallel_compile/tbe_compiler/
Dre_construct_json.py19 def common_op_info(json_file): argument
25 json_file["L1_addr_offset"] = 0
26 json_file["L1_fusion_type"] = -1
27 json_file["L1_workspace_size"] = -1
28 json_file["addr_type"] = 0
29 json_file["slice_offset"] = []
30 json_file["split_index"] = 0
31 json_file["total_shape"] = []
32 json_file["valid_shape"] = []
33 return json_file
[all …]
/third_party/jsoncpp/example/stringWrite/
DstringWrite.cpp26 const std::string json_file = writer.write(root); in main() local
27 std::cout << json_file << std::endl; in main()
30 const std::string json_file = Json::writeString(builder, root); in main() local
31 std::cout << json_file << std::endl; in main()
/third_party/flatbuffers/samples/
Dsample_bfbs.cpp28 std::string json_file; in main() local
33 &json_file) && in main()
53 ok = parser1.Parse(json_file.c_str(), include_directories); in main()
55 ok = parser2.Parse(json_file.c_str(), include_directories); in main()
/third_party/protobuf/benchmarks/js/
Djs_benchmark.js21 var json_file = ""; variable
30 json_file = filename.replace(/^--json_output=/, '');
77 if (json_file != "") {
78 fs.writeFile(json_file, JSON.stringify(results), (err) => {
/third_party/mindspore/mindspore/ccsrc/ps/core/
Dfile_configuration.cc28 std::ifstream json_file(file_path_); in Initialize() local
30 json_file >> js; in Initialize()
31 json_file.close(); in Initialize()
34 json_file.close(); in Initialize()
/third_party/grpc/test/cpp/qps/
Dqps_json_driver.cc244 FILE* json_file = fopen(FLAGS_scenarios_file.c_str(), "r"); in QpsDriver() local
245 GPR_ASSERT(json_file != nullptr); in QpsDriver()
246 fseek(json_file, 0, SEEK_END); in QpsDriver()
247 long len = ftell(json_file); in QpsDriver()
249 fseek(json_file, 0, SEEK_SET); in QpsDriver()
250 GPR_ASSERT(len == (long)fread(data, 1, len, json_file)); in QpsDriver()
251 fclose(json_file); in QpsDriver()
/third_party/cef/tools/cefbuilds/
Dcef_json_builder_example.py100 json_file = os.path.join(current_dir, 'index.json') variable
111 if os.path.exists(json_file):
113 with open(json_file, 'r') as f:
144 with open(json_file, 'w') as f:
/third_party/gn/tools/
Dfind_unreachable.py64 with open(cmd_args.json_file) as json_file:
65 targets_graph = json.load(json_file)['targets']
/third_party/skia/third_party/externals/angle2/src/tests/restricted_traces/
Dgen_restricted_traces.py340 def read_json(json_file): argument
341 with open(json_file) as map_file:
383 json_file = 'restricted_traces.json'
388 json_data = read_json(json_file)
397 inputs = [json_file]
414 'data_source_name': json_file,
/third_party/mindspore/mindspore/ccsrc/debug/data_dump/
Ddump_json_parser.cc99 std::ifstream json_file(dump_config_file.value()); in Parse() local
100 if (!json_file.is_open()) { in Parse()
107 json_file >> j; in Parse()
109 MS_LOG(ERROR) << "Dump json contents:" << GetIfstreamString(json_file); in Parse()
110 json_file.close(); in Parse()
118 json_file.close(); in Parse()
126 void WriteJsonFile(const std::string &file_path, const std::ifstream &json_file) { in WriteJsonFile() argument
132 json_copy << json_file.rdbuf(); in WriteJsonFile()
146 std::ifstream json_file(dump_config_file.value()); in CopyDumpJsonToDir() local
153 WriteJsonFile(realpath.value(), json_file); in CopyDumpJsonToDir()
[all …]
/third_party/flutter/skia/infra/bots/g3_compile/
Dtrigger_wait_g3_task.py74 json_file = os.path.join(os.getcwd(), _get_task_file_name(task))
75 with open(json_file, 'w') as f:
77 subprocess.check_call(['gsutil', 'cp', json_file, '%s/' % _get_gs_bucket()])
78 print 'Created %s/%s' % (_get_gs_bucket(), os.path.basename(json_file))
/third_party/flutter/skia/infra/bots/android_compile/
Dtrigger_wait_ac_task.py65 json_file = os.path.join(os.getcwd(), _get_task_file_name(task))
66 with open(json_file, 'w') as f:
68 subprocess.check_call(['gsutil', 'cp', json_file, '%s/' % _get_gs_bucket()])
69 print 'Created %s/%s' % (_get_gs_bucket(), os.path.basename(json_file))
/third_party/skia/third_party/externals/angle2/src/common/
Dgen_packed_gl_enums.py267 json_file = generator['json']
272 enums = load_enums(path_prefix + json_file)
273 write_header(enums, path_prefix, output_file + '_autogen.h', json_file, includes,
275 write_cpp(enums, path_prefix, output_file + '_autogen.cpp', json_file, namespace,
/third_party/flutter/skia/third_party/externals/angle2/src/common/
Dgen_packed_gl_enums.py259 json_file = generator['json']
263 enums = load_enums(path_prefix + json_file)
264 write_header(enums, path_prefix, output_file + '_autogen.h', json_file, namespace,
266 write_cpp(enums, path_prefix, output_file + '_autogen.cpp', json_file, namespace,
/third_party/flutter/skia/third_party/externals/spirv-tools/utils/
Dgenerate_grammar_tables.py557 with open(args.spirv_core_grammar) as json_file:
558 grammar = json.loads(json_file.read())
577 with open(args.extinst_glsl_grammar) as json_file:
578 grammar = json.loads(json_file.read())
584 with open(args.extinst_opencl_grammar) as json_file:
585 grammar = json.loads(json_file.read())
591 with open(args.extinst_vendor_grammar) as json_file:
592 grammar = json.loads(json_file.read())
/third_party/mindspore/mindspore/ccsrc/debug/
Denv_config_parser.cc128 std::ifstream json_file(config_file_); in ParseFromFile() local
129 if (!json_file.is_open()) { in ParseFromFile()
138 json_file >> j; in ParseFromFile()
140 …MS_LOG(WARNING) << "Env config json contents '" << GetIfstreamString(json_file) << "' in config fi… in ParseFromFile()
/third_party/skia/infra/bots/recipe_modules/gold_upload/
Dapi.py55 json_file = results_dir.join(DM_JSON)
57 self.m.gsutil.cp('dm.json', json_file,
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/
Dgenerate_grammar_tables.py810 with open(args.spirv_core_grammar) as json_file:
811 core_grammar = json.loads(json_file.read())
846 with open(args.extinst_glsl_grammar) as json_file:
847 grammar = json.loads(json_file.read())
854 with open(args.extinst_opencl_grammar) as json_file:
855 grammar = json.loads(json_file.read())
862 with open(args.extinst_vendor_grammar) as json_file:
863 grammar = json.loads(json_file.read())
/third_party/spirv-tools/utils/
Dgenerate_grammar_tables.py810 with open(args.spirv_core_grammar) as json_file:
811 core_grammar = json.loads(json_file.read())
846 with open(args.extinst_glsl_grammar) as json_file:
847 grammar = json.loads(json_file.read())
854 with open(args.extinst_opencl_grammar) as json_file:
855 grammar = json.loads(json_file.read())
862 with open(args.extinst_vendor_grammar) as json_file:
863 grammar = json.loads(json_file.read())
/third_party/skia/third_party/externals/spirv-tools/utils/
Dgenerate_grammar_tables.py810 with open(args.spirv_core_grammar) as json_file:
811 core_grammar = json.loads(json_file.read())
846 with open(args.extinst_glsl_grammar) as json_file:
847 grammar = json.loads(json_file.read())
854 with open(args.extinst_opencl_grammar) as json_file:
855 grammar = json.loads(json_file.read())
862 with open(args.extinst_vendor_grammar) as json_file:
863 grammar = json.loads(json_file.read())
/third_party/skia/build/fuchsia/
Dfidl_gen_cpp20 with open(path) as json_file:
21 parsed = json.load(json_file)
/third_party/flutter/skia/infra/bots/recipes/
Dupload_dm_results.py71 json_file = results_dir.join(DM_JSON)
74 api.gsutil.cp('dm.json', json_file,
/third_party/skia/infra/bots/recipes/
Dupload_dm_results.py71 json_file = results_dir.join(DM_JSON)
74 api.gsutil.cp('dm.json', json_file,
/third_party/mindspore/mindspore/_extends/parallel_compile/akg_compiler/
Dakg_process.py32 for json_file in json_files:
33 shutil.move(os.path.join(pid_path, json_file), ppid_path)
/third_party/skia/third_party/externals/spirv-cross/
Dtest_shaders.py605 def regression_check_reflect(shader, json_file, args): argument
610 actual = md5_for_file(json_file)
619 shutil.move(json_file, reference)
621 … print('Generated reflection json in {} does not match reference {}!'.format(json_file, reference))
622 with open(json_file, 'r') as f:
632 remove_file(json_file)
636 remove_file(json_file)
640 shutil.move(json_file, reference)

12