hxtorch.spiking.handle.Handle_spikes
-
class
hxtorch.spiking.handle.Handle_spikes(spikes: Union[None, torch.Tensor, hxtorch.spiking.observables.AnalogObservable] = None) Bases:
objectHandle for spikes
-
__init__(spikes: Union[None, torch.Tensor, hxtorch.spiking.observables.AnalogObservable] = None) → None Initialize self. See help(type(self)) for accurate signature.
Methods
__init__([spikes])Initialize self.
clone(handle)Overwrite contents from this with contents from handle.
holds(name)Checks whether the tensor handle already holds a tensor with key name.
Attributes
-
clone(handle) → None Overwrite contents from this with contents from handle.
- Parameters
handle – The handle to clone.
-
holds(name: str) → bool Checks whether the tensor handle already holds a tensor with key name.
- Parameters
name – Key of reference to tensor.
- Returns
Returns a bool indicating whether the data present at key name is not None.
-
spikes: Union[None, torch.Tensor, hxtorch.spiking.observables.AnalogObservable] = None
-