hxtorch.spiking.execution_instance
Definition of ExecutionInstance, wrapping grenade.common.ExecutionInstanceID, and providing functionality for chip instance configuration
Classes
|
Helper class that provides a standard way to create an ABC using inheritance. |
ExecutionInstance base class |
|
|
|
List of ExecutionInstances |
|
|
Target parameters for the neuron calibration. |
Tracks assignment of pyNN IDs of HXNeuron based populations to the corresponding hardware entities, i.e. LogicalNeuronOnDLS. |
|
|
PurePath subclass that can make system calls. |
|
Data class containing further options for spiking calibration. |
|
Data class containing targets for spiking neuron calibration. |
Functions
-
hxtorch.spiking.execution_instance.
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, …):
…
-
hxtorch.spiking.execution_instance.
calibrate
(target: calix.common.base.TopLevelCalibTarget, options: Optional[calix.common.base.CalibOptions] = None, cache_paths: Optional[List[pathlib.Path]] = None, cache_read_only: Optional[bool] = False, connection: Optional = None) → calix.common.base.CalibResult Calibrate chip with cache functionality. Calibration function is deduced from target and options type. If cache_paths is not empty, searches for cached calibration result with same parameters in list order. If no cache is found executes calibration and caches in fist path with write access.
- Parameters
target – Target values for calibration.
options – Options for calibration.
cache_paths – List of possible cache locations. If list is empty, caching is skipped. If None defaults are used. Defaults are read-only shared wang cache path followed by user home cache.
cache_read_only – Only read cache file, do not create cache file if one does not exist.
- Returns
Calibration result
-
hxtorch.spiking.execution_instance.
init_hardware
(*args, **kwargs) Overloaded function.
init_hardware(hwdb_path: Optional[hxtorch::core::HWDBPath] = None, ann: bool = False) -> None
Initialize the hardware automatically from the environment.
@param hwdb_path Optional path to the hwdb to use @param spiking Boolean flag indicating whether spiking or non-spiking calibration is loaded
init_hardware(calibration_path: hxtorch::core::CalibrationPath) -> None
Initialize the hardware with calibration path.
@param calibration_path Calibration path to load from
-
hxtorch.spiking.execution_instance.
release_hardware
() → None Release hardware resource.