to_object#
- class brainpy.math.to_object(f=None, child_objs=None, dyn_vars=None, name=None)[source]#
Transform a Python function to
BrainPyObject.- Parameters:
f (
Callable) – The python function.child_objs (
Union[Callable,BrainPyObject,Sequence[BrainPyObject],Dict[str,BrainPyObject]]) – The children objects used in this Python function.dyn_vars (
Union[Variable,Sequence[Variable],Dict[str,Variable]]) – The Variable instance used in the Python function.name (
str) – The name of the createdBrainPyObject.
- Returns:
func – The instance of
BrainPyObject.- Return type: