Lines Matching defs:file
4 * you may not use this file except in compliance with the License.
22 * getDimInfo: get dim info from data file(int64_t)
29 * the size of the testing data including the data file
67 printf("ERROR: cant't open file %s\n", infile.c_str());
78 printf("ERROR: cant't open file %s\n", infile.c_str());
103 printf("\n [common.cpp] Read test data file Over, get dimInfo as: (");
116 * a:compared file a
117 * b:compared file b
181 std::fstream file;
182 file.open("cout.csv", std::ios::app);
184 file << ","
188 file << "," << sum_all / c;
190 file << "," << tol / fail_count;
192 file.close();
273 std::fstream file;
274 file.open("cout.csv", std::ios::app);
276 file << ","
280 file << "," << sum_all / c;
282 file << "," << tol / fail_count;
284 file.close();
306 * compFp32WithTData: compare the data with the data in hisi .t file
309 * expectedDataFile: the path of hisi .t result file
377 * ReadFile: read file of model
379 * file: file location
380 * size: file size
382 * buf of file
384 char *ReadFile(const char *file, size_t* size) {
385 printf("[common.cpp] Loading data from: %s\n", file);
387 std::ifstream ifs(file);