First implementation

This commit is contained in:
2021-10-10 21:03:57 +02:00
parent f8be309c81
commit 0dfd7a595b
344 changed files with 63911 additions and 0 deletions

24
vendor/github.com/mattn/go-tflite/tflite.go.h generated vendored Normal file
View File

@@ -0,0 +1,24 @@
#ifndef GO_TFLITE_H
#define GO_TFLITE_H
#define _GNU_SOURCE
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <tensorflow/lite/c/c_api.h>
extern void _go_error_reporter(void*, char*);
static void
_error_reporter(void *user_data, const char* format, va_list args) {
char *ptr;
if (asprintf(&ptr, format, args)) {}
_go_error_reporter(user_data, ptr);
free(ptr);
}
static void
_TfLiteInterpreterOptionsSetErrorReporter(TfLiteInterpreterOptions* options, void* user_data) {
TfLiteInterpreterOptionsSetErrorReporter(options, _error_reporter, user_data);
}
#endif