Skip to content

Instantly share code, notes, and snippets.

@Amplify4177
Created November 9, 2023 13:37
Show Gist options
  • Select an option

  • Save Amplify4177/9e7385e60452ff4fcca0442a54e1b731 to your computer and use it in GitHub Desktop.

Select an option

Save Amplify4177/9e7385e60452ff4fcca0442a54e1b731 to your computer and use it in GitHub Desktop.
ESP32 ML - Linear Layer Weights Loader
class linearLayer(Module):
*** skip earlier code ***
def load_state_dict(self, weights, bias):
self.weights = weights
self.bias = bias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment