Home
last modified time | relevance | path

Searched refs:ReadFile (Results 1 – 25 of 235) sorted by relevance

12345678910

/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/opencl/
Dstack_tests.cc78 …auto input_data1 = reinterpret_cast<float *>(mindspore::lite::ReadFile(input1Ppath.c_str(), &input… in TEST_F()
79 …auto input_data2 = reinterpret_cast<float *>(mindspore::lite::ReadFile(input2Ppath.c_str(), &input… in TEST_F()
80 …auto output_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(correctOutputPath.c_str(), … in TEST_F()
97 …auto input_data1 = reinterpret_cast<float *>(mindspore::lite::ReadFile(input1Ppath.c_str(), &input… in TEST_F()
98 …auto input_data2 = reinterpret_cast<float *>(mindspore::lite::ReadFile(input2Ppath.c_str(), &input… in TEST_F()
99 …auto output_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(correctOutputPath.c_str(), … in TEST_F()
116 …auto input_data1 = reinterpret_cast<float *>(mindspore::lite::ReadFile(input1Ppath.c_str(), &input… in TEST_F()
117 …auto input_data2 = reinterpret_cast<float *>(mindspore::lite::ReadFile(input2Ppath.c_str(), &input… in TEST_F()
118 …auto output_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(correctOutputPath.c_str(), … in TEST_F()
135 …auto input_data1 = reinterpret_cast<float *>(mindspore::lite::ReadFile(input1Ppath.c_str(), &input… in TEST_F()
[all …]
Dprelu_tests.cc40 …auto input_data1 = reinterpret_cast<float *>(mindspore::lite::ReadFile(input1Ppath.c_str(), &input… in TEST_F()
41 …auto input_data2 = reinterpret_cast<float *>(mindspore::lite::ReadFile(input2Ppath.c_str(), &input… in TEST_F()
42 …auto output_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(correctOutputPath.c_str(), … in TEST_F()
59 …auto input_data1 = reinterpret_cast<float *>(mindspore::lite::ReadFile(input1Ppath.c_str(), &input… in TEST_F()
60 …auto input_data2 = reinterpret_cast<float *>(mindspore::lite::ReadFile(input2Ppath.c_str(), &input… in TEST_F()
61 …auto output_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(correctOutputPath.c_str(), … in TEST_F()
Dlayer_norm_tests.cc48 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(inputPpath.c_str(), &input_s… in TEST_F()
49 …auto gamma_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(gammaPpath.c_str(), &gamma_s… in TEST_F()
50 …auto beta_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(betaPpath.c_str(), &beta_size… in TEST_F()
51 …auto output_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(correctOutputPath.c_str(), … in TEST_F()
Dsplit_tests.cc50 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(inputPpath.c_str(), &input_s… in TEST_F()
51 …auto output_data1 = reinterpret_cast<float *>(mindspore::lite::ReadFile(output1Ppath.c_str(), &out… in TEST_F()
52 …auto output_data2 = reinterpret_cast<float *>(mindspore::lite::ReadFile(output2Ppath.c_str(), &out… in TEST_F()
Dcast_tests.cc57 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input1Ppath.c_str(), &input1… in TEST_F()
59 … reinterpret_cast<float16_t *>(mindspore::lite::ReadFile(correctOutputPath.c_str(), &output_size)); in TEST_F()
167 …auto input_data = reinterpret_cast<float16_t *>(mindspore::lite::ReadFile(input1Ppath.c_str(), &in… in TEST_F()
168 …auto correctOutput = reinterpret_cast<float *>(mindspore::lite::ReadFile(correctOutputPath.c_str()… in TEST_F()
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/
Dactivation_grad_fp32_tests.cc44 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
49 auto yt_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(yt_path.c_str(), &input_size)); in TEST_F()
98 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
102 auto yt_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(yt_path.c_str(), &input_size)); in TEST_F()
149 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
153 auto yt_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(yt_path.c_str(), &input_size)); in TEST_F()
200 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
204 auto yt_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(yt_path.c_str(), &input_size)); in TEST_F()
252 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
256 auto yt_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(yt_path.c_str(), &input_size)); in TEST_F()
[all …]
Dpooling_grad_fp32_tests.cc76 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
131 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
138 …auto input1_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input1_path.c_str(), &input… in TEST_F()
204 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
211 …auto input1_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input1_path.c_str(), &input… in TEST_F()
278 …reinterpret_cast<float *>(mindspore::lite::ReadFile("./pooling/avgpoolgradfp32_s2_x_3_28_28_3.bin"… in TEST_F()
285 …reinterpret_cast<float *>(mindspore::lite::ReadFile("./pooling/avgpoolgradfp32_s2_dy_3_28_28_3.bin… in TEST_F()
342 …reinterpret_cast<float *>(mindspore::lite::ReadFile("./pooling/avgpoolgradfp32_s3_x_3_28_28_3.bin"… in TEST_F()
349 …reinterpret_cast<float *>(mindspore::lite::ReadFile("./pooling/avgpoolgradfp32_s3_dy_3_28_28_3.bin… in TEST_F()
406 auto in_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(i_path.c_str(), &input_size)); in TEST_F()
[all …]
Dsoftmax_grad_fp32_tests.cc73 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
76 auto yt_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(yt_path.c_str(), &input_size)); in TEST_F()
134 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
138 auto yt_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(yt_path.c_str(), &input_size)); in TEST_F()
199 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
203 auto yt_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(yt_path.c_str(), &input_size)); in TEST_F()
264 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
267 auto yt_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(yt_path.c_str(), &input_size)); in TEST_F()
329 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
333 auto yt_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(yt_path.c_str(), &input_size)); in TEST_F()
Dconvolution_grad_fp32_tests.cc85 auto dy_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(dy_path.c_str(), &dy_size)); in TEST_F()
99 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
164 auto dy_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(dy_path.c_str(), &dy_size)); in TEST_F()
171 auto w_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(w_path.c_str(), &w_size)); in TEST_F()
241 auto dy_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(dy_path.c_str(), &dy_size)); in TEST_F()
254 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
314 auto dy_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(dy_path.c_str(), &dy_size)); in TEST_F()
321 auto w_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(w_path.c_str(), &w_size)); in TEST_F()
391 auto dy_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(dy_path.c_str(), &dy_size)); in TEST_F()
404 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
[all …]
Ddeconvolution_grad_fp32_tests.cc67 auto dy_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(dy_path.c_str(), &dy_size)); in TEST_F()
78 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
175 auto dy_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(dy_path.c_str(), &dy_size)); in TEST_F()
186 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
277 auto dy_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(dy_path.c_str(), &dy_size)); in TEST_F()
291 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
384 auto dy_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(dy_path.c_str(), &dy_size)); in TEST_F()
395 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
491 auto dy_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(dy_path.c_str(), &dy_size)); in TEST_F()
502 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
[all …]
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/fp16_grad/
Dactivation_grad_fp16_test.cc37 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
42 auto yt_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(yt_path.c_str(), &input_size)); in TEST_F()
47 …auto ref_data = reinterpret_cast<const float *>(mindspore::lite::ReadFile(output_path.c_str(), &in… in TEST_F()
94 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
98 auto yt_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(yt_path.c_str(), &input_size)); in TEST_F()
102 …auto ref_data = reinterpret_cast<const float *>(mindspore::lite::ReadFile(output_path.c_str(), &in… in TEST_F()
Darithmetic_fp16_self_grad_tests.cc37 …auto input_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(input_path.c_str(), &input_s… in TEST_F()
41 auto yt_data = reinterpret_cast<float *>(mindspore::lite::ReadFile(yt_path.c_str(), &input_size)); in TEST_F()
45 …auto ref_data = reinterpret_cast<const float *>(mindspore::lite::ReadFile(output_path.c_str(), &in… in TEST_F()
/third_party/cef/tests/ceftests/
Dzip_reader_unittest.cc148 ASSERT_EQ(reader->ReadFile(buff, sizeof(buff)), 19); in TEST()
159 ASSERT_EQ(reader->ReadFile(buff, sizeof(buff)), 20); in TEST()
167 ASSERT_EQ(reader->ReadFile(buff, sizeof(buff)), 20); in TEST()
180 ASSERT_EQ(reader->ReadFile(buff, sizeof(buff)), 21); in TEST()
192 ASSERT_EQ(reader->ReadFile(buff, sizeof(buff)), 20); in TEST()
203 ASSERT_EQ(reader->ReadFile(buff, sizeof(buff)), 20); in TEST()
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/
Ddetection_post_process_test.cc35 … reinterpret_cast<float *>(mindspore::lite::ReadFile(input_boxes_path.c_str(), &input_boxes_size)); in DetectionPostProcessTestInit()
47 …reinterpret_cast<float *>(mindspore::lite::ReadFile(input_scores_path.c_str(), &input_scores_size)… in DetectionPostProcessTestInit()
59 …reinterpret_cast<uint8_t *>(mindspore::lite::ReadFile(input_anchors_path.c_str(), &input_anchors_s… in DetectionPostProcessTestInit()
136 …reinterpret_cast<float *>(mindspore::lite::ReadFile(output_boxes_path.c_str(), &output_boxes_size)… in TEST_F()
143 …reinterpret_cast<float *>(mindspore::lite::ReadFile(output_classes_path.c_str(), &output_classes_s… in TEST_F()
150 …reinterpret_cast<float *>(mindspore::lite::ReadFile(output_scores_path.c_str(), &output_scores_siz… in TEST_F()
157 …reinterpret_cast<float *>(mindspore::lite::ReadFile(output_num_det_path.c_str(), &output_num_det_s… in TEST_F()
/third_party/mindspore/mindspore/lite/test/common/
Dcommon_test.h78 …auto ground_truth = reinterpret_cast<float *>(lite::ReadFile(file_path.c_str(), &ground_truth_size… in CompareOutput()
105 …auto ground_truth = reinterpret_cast<float *>(mindspore::lite::ReadFile(file_path.c_str(), &output… in CompareRelativeOutput()
120 …auto ground_truth = reinterpret_cast<float *>(mindspore::lite::ReadFile(file_path.c_str(), &output… in RelativeOutputError()
127 static void ReadFile(const char *file, size_t *size, char **buf) { in ReadFile() function
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/
Dio.h37 void ReadFile(FILE* file, std::vector<T>* data) { in ReadFile() function
90 ReadFile(fp, data); in ReadBinaryFile()
112 ReadFile(fp, data); in ReadTextFile()
/third_party/skia/third_party/externals/spirv-tools/tools/
Dio.h37 void ReadFile(FILE* file, std::vector<T>* data) { in ReadFile() function
90 ReadFile(fp, data); in ReadBinaryFile()
112 ReadFile(fp, data); in ReadTextFile()
/third_party/spirv-tools/tools/
Dio.h37 void ReadFile(FILE* file, std::vector<T>* data) { in ReadFile() function
90 ReadFile(fp, data); in ReadBinaryFile()
112 ReadFile(fp, data); in ReadTextFile()
/third_party/mindspore/mindspore/lite/test/st/
Dgraph_test.cc37 char *graph_buf = lite::ReadFile("./mindrtParallel/mindrt_parallel_model_split.ms", &size); in TEST_F()
57 char *bin_buf = lite::ReadFile("./mindrtParallel/mindrt_parallel_model.bin", &size); in TEST_F()
116 char *model_buf = lite::ReadFile("./mindrtParallel/mindrt_parallel_model_split.ms", &size); in TEST_F()
141 char *bin_buf = lite::ReadFile("./mindrtParallel/mindrt_parallel_model.bin", &size); in TEST_F()
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/
Dmain.go65 defSource, err := ioutil.ReadFile(defPath)
99 tmpl, err := ioutil.ReadFile(tmplPath)
136 existing, err := ioutil.ReadFile(path)
/third_party/skia/experimental/tskit/go/gen_types/
Dgen_types_test.go16 contents := testutils.ReadFile(t, "bindings1.cpp")
17 expectedOutput := testutils.ReadFile(t, "expectedambientnamespace1.d.ts")
/third_party/ninja/src/
Ddisk_interface.h38 virtual Status ReadFile(const string& path, string* contents,
81 virtual Status ReadFile(const string& path, string* contents, string* err);
/third_party/python/Lib/test/test_asyncio/
Dtest_windows_utils.py31 ov1.ReadFile(h1, 100)
105 ovout.ReadFile(p.stdout.handle, 100)
106 overr.ReadFile(p.stderr.handle, 100)
/third_party/node/tools/
Djs2c.py41 def ReadFile(filename): function
117 code = ReadFile(filename)
158 config = ReadFile(config_filename)
/third_party/grpc/test/cpp/util/
Dtest_credentials_provider.cc43 std::string ReadFile(const std::string& src_path) { in ReadFile() function
60 custom_server_key_ = ReadFile(FLAGS_tls_key_file); in DefaultCredentialsProvider()
63 custom_server_cert_ = ReadFile(FLAGS_tls_cert_file); in DefaultCredentialsProvider()

12345678910