Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

Commit

Permalink
libtf: Header cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
kwagyeman committed Feb 9, 2024
1 parent 1316e38 commit 9a04e81
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 36 deletions.
18 changes: 0 additions & 18 deletions libtf.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@ typedef struct libtf_parameters {
int output_zero_point;
} libtf_parameters_t;

// Call this first to get the model parameters.
// Returns 0 on success and 1 on failure.
// Errors are printed to stdout.
int libtf_get_parameters_minimal(const unsigned char *model_data, // TensorFlow Lite binary model (8-bit quant).
unsigned char *tensor_arena, // As big as you can make it scratch buffer.
size_t tensor_arena_size, // Size of the above scratch buffer.
libtf_parameters_t *params); // Struct to hold model parameters.

// Call this first to get the model parameters.
// Returns 0 on success and 1 on failure.
// Errors are printed to stdout.
Expand All @@ -64,16 +56,6 @@ typedef void (*libtf_output_data_callback_t)(void *callback_data,
void *model_output,
libtf_parameters_t *params);

// Returns 0 on success and 1 on failure.
// Errors are printed to stdout.
int libtf_invoke_minimal(const unsigned char *model_data, // TensorFlow Lite binary model (8-bit quant).
unsigned char *tensor_arena, // As big as you can make it scratch buffer.
libtf_parameters_t *params, // Struct with model parameters.
libtf_input_data_callback_t input_callback, // Callback to populate the model input data byte array.
void *input_callback_data, // User data structure passed to input callback.
libtf_output_data_callback_t output_callback, // Callback to use the model output data byte array.
void *output_callback_data); // User data structure passed to output callback.

// Returns 0 on success and 1 on failure.
// Errors are printed to stdout.
int libtf_invoke_default(const unsigned char *model_data, // TensorFlow Lite binary model (8-bit quant).
Expand Down
Binary file modified libtf/cortex-m0plus/libtf.a
Binary file not shown.
Binary file modified libtf/cortex-m4/libtf.a
Binary file not shown.
Binary file modified libtf/cortex-m55/libtf.a
Binary file not shown.
Binary file modified libtf/cortex-m7/libtf.a
Binary file not shown.
18 changes: 0 additions & 18 deletions libtf/libtf.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@ typedef struct libtf_parameters {
int output_zero_point;
} libtf_parameters_t;

// Call this first to get the model parameters.
// Returns 0 on success and 1 on failure.
// Errors are printed to stdout.
int libtf_get_parameters_minimal(const unsigned char *model_data, // TensorFlow Lite binary model (8-bit quant).
unsigned char *tensor_arena, // As big as you can make it scratch buffer.
size_t tensor_arena_size, // Size of the above scratch buffer.
libtf_parameters_t *params); // Struct to hold model parameters.

// Call this first to get the model parameters.
// Returns 0 on success and 1 on failure.
// Errors are printed to stdout.
Expand All @@ -64,16 +56,6 @@ typedef void (*libtf_output_data_callback_t)(void *callback_data,
void *model_output,
libtf_parameters_t *params);

// Returns 0 on success and 1 on failure.
// Errors are printed to stdout.
int libtf_invoke_minimal(const unsigned char *model_data, // TensorFlow Lite binary model (8-bit quant).
unsigned char *tensor_arena, // As big as you can make it scratch buffer.
libtf_parameters_t *params, // Struct with model parameters.
libtf_input_data_callback_t input_callback, // Callback to populate the model input data byte array.
void *input_callback_data, // User data structure passed to input callback.
libtf_output_data_callback_t output_callback, // Callback to use the model output data byte array.
void *output_callback_data); // User data structure passed to output callback.

// Returns 0 on success and 1 on failure.
// Errors are printed to stdout.
int libtf_invoke_default(const unsigned char *model_data, // TensorFlow Lite binary model (8-bit quant).
Expand Down

0 comments on commit 9a04e81

Please sign in to comment.