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

Function DumpFloat

internal/bin/test_dw_conv_general.cpp:122–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120#endif
121
122static inline void DumpFloat(const char *fname, float *data, int number)
123{
124 FILE *fp = fopen(fname, "w");
125
126 for (int i = 0; i < number; i++) {
127 if (i % 16*4 == 0) {
128 fprintf(fp, "\n%d:",i);
129 }
130 fprintf(fp, " %.5f", data[i]);
131 }
132 fprintf(fp, "\n");
133 fclose(fp);
134}
135
136float maxerr(float *gt, float *pred, int size, int dump = 0)
137{

Callers 1

maxerrFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected