Autokem: CNN-based glyph labeller for Keming Machine

This commit is contained in:
minjaesong
2026-03-06 15:43:47 +09:00
parent adab8fa0ef
commit 0c99a27ffe
15 changed files with 1748 additions and 1 deletions

16
Autokem/safetensor.h Normal file
View File

@@ -0,0 +1,16 @@
#ifndef SAFETENSOR_H
#define SAFETENSOR_H
#include "nn.h"
/* Save network weights to .safetensors format.
metadata: optional string pairs (key,value,...,NULL) */
int safetensor_save(const char *path, Network *net, int total_samples, int epochs, float val_loss);
/* Load network weights from .safetensors file. */
int safetensor_load(const char *path, Network *net);
/* Print model stats from .safetensors file. */
int safetensor_stats(const char *path);
#endif