Update libtf.

This commit is contained in:
iabdalkader 2020-11-10 23:19:30 +02:00
parent f272844bb0
commit f068963bee
8 changed files with 32 additions and 4 deletions

View File

@ -1,5 +1,5 @@
You must link this library to your application with arm-none-eabi-gcc and have implemented putchar().
C Compile Flags: -DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK -DNDEBUG -DTF_LITE_MCU_DEBUG_LOG -DTF_LITE_STATIC_MEMORY -MMD -O3 -Wall -Werror -Warray-bounds -Wextra -Wvla -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-type-limits -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -fdata-sections -ffunction-sections -fmessage-length=0 -fomit-frame-pointer -funsigned-char -fshort-enums -fno-delete-null-pointer-checks -fno-exceptions -fno-unwind-tables -mabi=aapcs-linux -mfloat-abi=hard -mthumb -nostartfiles -nostdlib -std=c11 -DARM_MATH_CM4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mtune=cortex-m4
C Compile Flags: -DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK -DNDEBUG -DTF_LITE_MCU_DEBUG_LOG -DTF_LITE_STATIC_MEMORY -MMD -O3 -Wall -Werror -Warray-bounds -Wextra -Wvla -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-type-limits -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-unused-value -Wno-error=sign-compare -Wno-error=nonnull -Wno-error=unused-value -fdata-sections -ffunction-sections -fmessage-length=0 -fomit-frame-pointer -funsigned-char -fshort-enums -fno-delete-null-pointer-checks -fno-exceptions -fno-unwind-tables -mabi=aapcs-linux -mfloat-abi=hard -mthumb -nostartfiles -nostdlib -std=c11 -DARM_MATH_CM4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mtune=cortex-m4
CXX Compile Flags: -DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK -DNDEBUG -DTF_LITE_MCU_DEBUG_LOG -DTF_LITE_STATIC_MEMORY -MMD -O3 -Wall -Werror -Warray-bounds -Wextra -Wvla -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-type-limits -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -fdata-sections -ffunction-sections -fmessage-length=0 -fomit-frame-pointer -funsigned-char -fshort-enums -fno-delete-null-pointer-checks -fno-exceptions -fno-unwind-tables -mabi=aapcs-linux -mfloat-abi=hard -mthumb -nostartfiles -nostdlib -std=c++11 -fno-rtti -fno-threadsafe-statics -fno-use-cxa-atexit -DARM_MATH_CM4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mtune=cortex-m4
CXX Compile Flags: -DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK -DNDEBUG -DTF_LITE_MCU_DEBUG_LOG -DTF_LITE_STATIC_MEMORY -MMD -O3 -Wall -Werror -Warray-bounds -Wextra -Wvla -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-type-limits -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-unused-value -Wno-error=sign-compare -Wno-error=nonnull -Wno-error=unused-value -fdata-sections -ffunction-sections -fmessage-length=0 -fomit-frame-pointer -funsigned-char -fshort-enums -fno-delete-null-pointer-checks -fno-exceptions -fno-unwind-tables -mabi=aapcs-linux -mfloat-abi=hard -mthumb -nostartfiles -nostdlib -std=c++11 -fno-rtti -fno-threadsafe-statics -fno-use-cxa-atexit -DARM_MATH_CM4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mtune=cortex-m4

Binary file not shown.

View File

@ -62,6 +62,20 @@ int libtf_invoke(const unsigned char *model_data, // TensorFlow Lite binary mode
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_initialize_micro_features();
// Returns 0 on success and 1 on failure.
// Errors are printed to stdout.
// Converts audio sample data into a more compact form that's
// appropriate for feeding into a neural network.
int libtf_generate_micro_features(const int16_t* input, // Audio samples
int input_size, // Audio samples size
int output_size, // Slice size
int8_t* output, // Slice data
size_t* num_samples_read); // Number of samples used.
#ifdef __cplusplus
}
#endif

View File

@ -1,5 +1,5 @@
You must link this library to your application with arm-none-eabi-gcc and have implemented putchar().
C Compile Flags: -DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK -DNDEBUG -DTF_LITE_MCU_DEBUG_LOG -DTF_LITE_STATIC_MEMORY -MMD -O3 -Wall -Werror -Warray-bounds -Wextra -Wvla -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-type-limits -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -fdata-sections -ffunction-sections -fmessage-length=0 -fomit-frame-pointer -funsigned-char -fshort-enums -fno-delete-null-pointer-checks -fno-exceptions -fno-unwind-tables -mabi=aapcs-linux -mfloat-abi=hard -mthumb -nostartfiles -nostdlib -std=c11 -DARM_MATH_CM7 -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 -mtune=cortex-m7
C Compile Flags: -DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK -DNDEBUG -DTF_LITE_MCU_DEBUG_LOG -DTF_LITE_STATIC_MEMORY -MMD -O3 -Wall -Werror -Warray-bounds -Wextra -Wvla -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-type-limits -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-unused-value -Wno-error=sign-compare -Wno-error=nonnull -Wno-error=unused-value -fdata-sections -ffunction-sections -fmessage-length=0 -fomit-frame-pointer -funsigned-char -fshort-enums -fno-delete-null-pointer-checks -fno-exceptions -fno-unwind-tables -mabi=aapcs-linux -mfloat-abi=hard -mthumb -nostartfiles -nostdlib -std=c11 -DARM_MATH_CM7 -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 -mtune=cortex-m7
CXX Compile Flags: -DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK -DNDEBUG -DTF_LITE_MCU_DEBUG_LOG -DTF_LITE_STATIC_MEMORY -MMD -O3 -Wall -Werror -Warray-bounds -Wextra -Wvla -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-type-limits -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -fdata-sections -ffunction-sections -fmessage-length=0 -fomit-frame-pointer -funsigned-char -fshort-enums -fno-delete-null-pointer-checks -fno-exceptions -fno-unwind-tables -mabi=aapcs-linux -mfloat-abi=hard -mthumb -nostartfiles -nostdlib -std=c++11 -fno-rtti -fno-threadsafe-statics -fno-use-cxa-atexit -DARM_MATH_CM7 -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 -mtune=cortex-m7
CXX Compile Flags: -DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK -DNDEBUG -DTF_LITE_MCU_DEBUG_LOG -DTF_LITE_STATIC_MEMORY -MMD -O3 -Wall -Werror -Warray-bounds -Wextra -Wvla -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-type-limits -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-unused-value -Wno-error=sign-compare -Wno-error=nonnull -Wno-error=unused-value -fdata-sections -ffunction-sections -fmessage-length=0 -fomit-frame-pointer -funsigned-char -fshort-enums -fno-delete-null-pointer-checks -fno-exceptions -fno-unwind-tables -mabi=aapcs-linux -mfloat-abi=hard -mthumb -nostartfiles -nostdlib -std=c++11 -fno-rtti -fno-threadsafe-statics -fno-use-cxa-atexit -DARM_MATH_CM7 -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 -mtune=cortex-m7

Binary file not shown.

View File

@ -62,6 +62,20 @@ int libtf_invoke(const unsigned char *model_data, // TensorFlow Lite binary mode
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_initialize_micro_features();
// Returns 0 on success and 1 on failure.
// Errors are printed to stdout.
// Converts audio sample data into a more compact form that's
// appropriate for feeding into a neural network.
int libtf_generate_micro_features(const int16_t* input, // Audio samples
int input_size, // Audio samples size
int output_size, // Slice size
int8_t* output, // Slice data
size_t* num_samples_read); // Number of samples used.
#ifdef __cplusplus
}
#endif