hxtorch.spiking.backend.module_manager

Define graph-based data structure managing Nodes

Classes

ABC()

Helper class that provides a standard way to create an ABC using inheritance.

AbstractModuleManager()

Abstract base class for module manager

Any(*args, **kwargs)

Special type indicating an unconstrained type.

Handle(*args, **kwargs)

Factory for classes which are to be used as custom handles for observable data, depending on the specific observables a module deals with.

ModuleManager()

Object representing all nodes in a graph-like data structure

NewType(name, tp)

NewType creates simple unique types with almost zero runtime overhead.

Functions

hxtorch.spiking.backend.module_manager.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):