Skip to content

Commit b63dbac

Browse files
committed
Add autoload and info functions
1 parent 024ad91 commit b63dbac

File tree

5 files changed

+256
-492
lines changed

5 files changed

+256
-492
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,4 @@ target/
9393
standalone-build/
9494
_rust.h
9595
uv.lock
96+
tests/temp_models/

infera/bindings/include/rust.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ typedef struct {
3232
void infera_free(char *ptr);
3333
const char *infera_last_error(void);
3434

35+
// Version and autoload functions
36+
char *infera_version(void);
37+
char *infera_autoload_dir(const char *path);
38+
3539
// Model management functions
3640
int32_t infera_load_onnx_model(const char *name, const char *path);
3741
int32_t infera_unload_onnx_model(const char *name);
@@ -40,7 +44,6 @@ int32_t infera_unload_onnx_model(const char *name);
4044
InferaInferenceResult infera_run_inference(const char *model_name,
4145
const float *data, size_t rows,
4246
size_t cols);
43-
4447
InferaInferenceResult infera_predict_blob(const char *model_name,
4548
const uint8_t *blob_data,
4649
size_t blob_len);

0 commit comments

Comments
 (0)