/* * This file is part of the OpenMV project. * * Copyright (c) 2013-2021 Ibrahim Abdelkader * Copyright (c) 2013-2021 Kwabena W. Agyeman * * This work is licensed under the MIT license, see the file LICENSE for details. * * Python Tensorflow library wrapper. */ #ifndef __PY_TF_H__ #define __PY_TF_H__ #include "libtf.h" typedef struct py_tf_model_obj { mp_obj_base_t base; unsigned char *model_data; unsigned int model_data_len; libtf_parameters_t params; } py_tf_model_obj_t; // Log buffer #define PY_TF_PUTCHAR_BUFFER_LEN 1023 extern char *py_tf_putchar_buffer; extern size_t py_tf_putchar_buffer_index; extern size_t py_tf_putchar_buffer_len; void py_tf_alloc_putchar_buffer(); #endif // __PY_TF_H__