hxtorch.spiking.handle.Handle_graded_spikes

class hxtorch.spiking.handle.Handle_graded_spikes(graded_spikes: Union[None, torch.Tensor, hxtorch.spiking.observables.AnalogObservable] = None)

Bases: object

Handle for graded_spikes

__init__(graded_spikes: Union[None, torch.Tensor, hxtorch.spiking.observables.AnalogObservable] = None)None

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([graded_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

graded_spikes

clone(handle)None

Overwrite contents from this with contents from handle.

Parameters

handle – The handle to clone.

graded_spikes: Union[None, torch.Tensor, hxtorch.spiking.observables.AnalogObservable] = None
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.