#include "ckernel_model_load_v4.h"#include <errno.h>#include <stdio.h>#include <stdlib.h>#include <string.h>Go to the source code of this file.
Macros | |
| #define | COPY_CHUNK (1 << 20) |
| #define | MANIFEST_LINE_MAX 4096 |
Functions | |
| int | ck_load_weights_manifest_v4 (void *base, const char *weights_path, const char *manifest_path) |
| Load BUMPWGT4 weights into a v4 model buffer using a manifest map. | |
| static unsigned long long | parse_u64 (const char *s) |
| static int | starts_with (const char *s, const char *prefix) |
| #define COPY_CHUNK (1 << 20) |
Definition at line 13 of file ckernel_model_load_v4.c.
| #define MANIFEST_LINE_MAX 4096 |
Definition at line 12 of file ckernel_model_load_v4.c.
| int ck_load_weights_manifest_v4 | ( | void * | base, |
| const char * | weights_path, | ||
| const char * | manifest_path | ||
| ) |
Load BUMPWGT4 weights into a v4 model buffer using a manifest map.
The manifest format is line-based: name|dtype|file_offset|size|runtime_offset Offsets/sizes accept decimal or hex (0x...).
| base | Base pointer for the generated model buffer. |
| weights_path | Path to BUMPWGT4 weights file. |
| manifest_path | Path to weights_manifest.map emitted by build_ir_v4.py. |
Definition at line 24 of file ckernel_model_load_v4.c.
References COPY_CHUNK, MANIFEST_LINE_MAX, and parse_u64().
|
static |
Definition at line 19 of file ckernel_model_load_v4.c.
Referenced by ck_load_weights_manifest_v4().
|
static |
Definition at line 15 of file ckernel_model_load_v4.c.