Object-oriented Transformations#
Objects and Variables#
The BrainPyObject class for the whole BrainPy ecosystem. |
|
Transform a Python function as a |
|
A sequence of |
|
A dictionary of |
|
alias of |
|
alias of |
|
The pointer to specify the dynamical variable. |
|
The pointer to specify the parameter. |
|
The pointer to specify the trainable variable. |
|
A view of a Variable instance. |
|
A sequence of |
|
A dictionary of |
|
alias of |
|
alias of |
Object-oriented Transformations#
Automatic gradient computation for functions or class objects. |
|
Take vector-valued gradients for function |
|
Extending automatic Jacobian (reverse-mode) of |
|
Extending automatic Jacobian (reverse-mode) of |
|
Extending automatic Jacobian (forward-mode) of |
|
Hessian of |
|
Make a for-loop function, which iterate over inputs. |
|
Make a while-loop function. |
|
Make a condition (if-else) function. |
|
Simple conditional statement (if-else) with instance of |
|
|
|
|
|
|
|
|
|
JIT (Just-In-Time) compilation for BrainPy computation. |
|
Just-in-time compile a function and then the jitted function as the bound method for a class. |
|
Transform a Python function to |
|
Transform a Python function into a |
Helpers for Object-oriented Transformations#
Compute the shape/dtype of |
|
Variable stack, for collecting all |