Skip to content

Instantly share code, notes, and snippets.

@ShawnHymel
Created March 18, 2020 17:42
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 17 You must be signed in to fork a gist
  • Save ShawnHymel/79237fe6aee5a3653c497d879f746c0c to your computer and use it in GitHub Desktop.
Save ShawnHymel/79237fe6aee5a3653c497d879f746c0c to your computer and use it in GitHub Desktop.
TensorFlow Lite Sinewave Regression Training and Conversion
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@soumengoroi
Copy link

Create header guard

c_str += '#ifndef ' + var_name.upper() + '_H\n'
c_str += '#define ' + var_name.upper() + '_H\n\n'


-- Here I am facing error
"AttributeError: 'Interpreter' object has no attribute 'upper''

@ShawnHymel
Copy link
Author

@soumengoroi Check the value of var_name being passed into that function. It should be a string (and set by c_model_name as the argument)

@richardhemphill
Copy link

richardhemphill commented Sep 23, 2023

There is a typo in the 3rd code cell. Change versionS to version.
!python --version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment