jaxsnn.base.topology
Classes
|
Helper class that provides a standard way to create an ABC using inheritance. |
Base class for all neuron populations across paradigms |
|
Represents a spiking neural network (SNN) topology as a directed graph of layers. |
|
|
Abstract base class for generic types. |
|
Type variable. |
Functions
-
jaxsnn.base.topology.abstractmethod(funcobj) A decorator indicating abstract methods.
Requires that the metaclass is ABCMeta or derived from it. A class that has a metaclass derived from ABCMeta cannot be instantiated unless all of its abstract methods are overridden. The abstract methods can be called using any of the normal ‘super’ call mechanisms. abstractmethod() may be used to declare abstract methods for properties and descriptors.
Usage:
- class C(metaclass=ABCMeta):
@abstractmethod def my_abstract_method(self, arg1, arg2, argN):
…
-
jaxsnn.base.topology.cast(typ, val) Cast a value to a type.
This returns the value unchanged. To the type checker this signals that the return value has the designated type, but at runtime we intentionally don’t check anything (we want this to be as fast as possible).
-
jaxsnn.base.topology.get_logger(name: str)