Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Surrogate Gradient Function #237

Merged

Commits on Sep 6, 2023

  1. Custom Surrogate Gradient Function

    CustomSurrogate class and custom_surrogate function added to the surrogate.py file.
    
    This enables the users to define their own custom surrogate function and call it using either
    custom_surrogate(name_of_custom_surrogate_function)
    or
    CustomSurrogate.apply(data, name_of_custom_surrogate_function)
    
    The arguments of the custom surrogate gradient function always are The input of the forward pass (input_), the gradient of the input (grad_input) and the output of the the forward pass (out) respectively.
    
    ** Important Note: The hyperparameters of the custom Surrogate gradient function have to be defined inside of the function itself. **
    mehranfaraji committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    aec0e5f View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2023

  1. update docstrings

    jeshraghian committed Sep 23, 2023
    Configuration menu
    Copy the full SHA
    1f738f5 View commit details
    Browse the repository at this point in the history
  2. docstrings update typos

    jeshraghian committed Sep 23, 2023
    Configuration menu
    Copy the full SHA
    239fb08 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7bea7c9 View commit details
    Browse the repository at this point in the history