norse.torch.module.lif_box.LIFBoxParameters

norse.torch.module.lif_box.LIFBoxParameters#

class norse.torch.module.lif_box.LIFBoxParameters(tau_mem_inv: ~torch.Tensor = tensor(100.), v_leak: ~torch.Tensor = tensor(0.), v_th: ~torch.Tensor = tensor(1.), v_reset: ~torch.Tensor = tensor(0.), method: str = 'super', alpha: float = tensor(100.), reset_method: ~typing.Callable[[~torch.Tensor, ~torch.Tensor, ~torch.Tensor, ~torch.Tensor], ~torch.Tensor] = <function reset_value>)#
__init__()#

Methods

__init__()

broadcast(template)

Broadcasts a state tensor according to a given template, returning a tensor of the same shape on the same device.

count(value, /)

Return number of occurrences of value.

cpu()

cuda()

float()

index(value[, start, stop])

Return first index of value.

int()

to(device)

Attributes

alpha

Alias for field number 5

method

Alias for field number 4

reset_method

Alias for field number 6

tau_mem_inv

Alias for field number 0

v_leak

Alias for field number 1

v_reset

Alias for field number 3

v_th

Alias for field number 2