Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
nn_model_test.c File Reference
#include "common/nn_model.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <json-glib/json-glib.h>
#include <time.h>
Include dependency graph for nn_model_test.c:

Go to the source code of this file.

Functions

static double max_abs_diff (const float *a, const float *b, size_t count)
static float * read_f32 (const char *dir, const char *name, size_t count)
static int read_meta (const char *dir, const char *model_path, int *is_xtrans)
int main (int argc, char *argv[])

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

◆ max_abs_diff()

double max_abs_diff ( const float * a,
const float * b,
size_t count )
static

Definition at line 43 of file nn_model_test.c.

References d, and i.

Referenced by main().

◆ read_f32()

float * read_f32 ( const char * dir,
const char * name,
size_t count )
static

Definition at line 54 of file nn_model_test.c.

References f, and name.

Referenced by main().

◆ read_meta()

int read_meta ( const char * dir,
const char * model_path,
int * is_xtrans )
static

Definition at line 83 of file nn_model_test.c.

References error(), and g_free().

Referenced by main().