MCPcopy Create free account
hub / github.com/OAID/Tengine / DumpFloat

Function DumpFloat

core/lib/debug_utils.cpp:32–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30namespace TEngine {
31
32void DumpFloat(const char* fname, float* data, int number)
33{
34 FILE* fp = fopen(fname, "w");
35
36 for(int i = 0; i < number; i++)
37 {
38 if(i % 16 == 0)
39 {
40 fprintf(fp, "\n%d:", i);
41 }
42 fprintf(fp, " %.2f", data[i]);
43 }
44
45 fprintf(fp, "\n");
46
47 fclose(fp);
48}
49
50std::string ReplaceChar(const std::string& src, char from, char to)
51{

Callers 1

RunMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected