hxtorch.spiking.handle.Handle_current_membrane_cadc_membrane_madc
-
class
hxtorch.spiking.handle.Handle_current_membrane_cadc_membrane_madc(current: Union[None, torch.Tensor, hxtorch.spiking.observables.AnalogObservable] = None, membrane_cadc: Union[None, torch.Tensor, hxtorch.spiking.observables.AnalogObservable] = None, membrane_madc: Union[None, torch.Tensor, hxtorch.spiking.observables.AnalogObservable] = None) Bases:
objectHandle for current, membrane_cadc, membrane_madc
-
__init__(current: Union[None, torch.Tensor, hxtorch.spiking.observables.AnalogObservable] = None, membrane_cadc: Union[None, torch.Tensor, hxtorch.spiking.observables.AnalogObservable] = None, membrane_madc: Union[None, torch.Tensor, hxtorch.spiking.observables.AnalogObservable] = None) → None Initialize self. See help(type(self)) for accurate signature.
Methods
__init__([current, membrane_cadc, membrane_madc])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.
-
current: 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.
-
membrane_cadc: Union[None, torch.Tensor, hxtorch.spiking.observables.AnalogObservable] = None
-
membrane_madc: Union[None, torch.Tensor, hxtorch.spiking.observables.AnalogObservable] = None
-