inferno¶
Infrastructure¶
An extension of PyTorch's Module class. |
|
Tensor attribute with constrained shape. |
|
Tensor attribute with recorded history. |
|
Tensor attribute derived from other attributes. |
|
Provides and manages forward hook and prehook functionality. |
|
Provides forward hook and prehook functionality for subclasses. |
|
Interactable hook which only acts on module state. |
Tensor Creation¶
Returns a tensor based on input filled with zeros. |
|
Returns a tensor based on input filled with ones. |
|
Returns an uninitialized tensor based on input. |
|
Returns a tensor based on input filled with specified value. |
|
Returns a float or complex tensor based on input filled with specified value. |
|
Returns a tensor based on input filled with random values sampled uniformly. |
|
Returns a tensor based on input filled with random values sampled normally. |
|
Returns a scalar tensor based on input with specified value. |
|
Converts inputs into tensors. |
Math Operations¶
Type agnostic exponential function. |
|
Type agnostic square root function. |
|
Normalizes a tensor. |
|
Rescales a tensor (min-max normalization). |
|
Performs simple exponential smoothing for a time step. |
|
Performs Holt linear smoothing for a time step. |
|
Transforms spike trains into interspike intervals. |
|
Victor–Purpura distance between a pair of spike trains. |
Spike Trace¶
Performs a trace for a time step, considering the latest match. |
|
Performs a trace for a time step, considering all prior matches. |
|
Performs a trace for a time step, considering the latest match, scaled by the inputs. |
|
Performs a trace for a time step, considering all prior matches, scaled by the inputs. |
Types¶
Callable type taking one input of a type and returning one output of the same type. |
|
Callable type taking an arbitrary number of inputs of a type and returning one output of the same type. |
|
Callable type taking one input of a type and returning an arbitrary number of outputs of the same type. |
|
Callable type taking an arbitrary number of inputs of a type and returning the same number of outputs of the same type. |
|
Callable type taking a module and one input of a type and returning one output of the same type. |
|
Callable type taking a module and an arbitrary number of inputs of a type and returning one output of the same type. |
|
Callable type taking a module and one input of a type and returning an arbitrary number of outputs of the same type. |
|
Callable type taking a module and an arbitrary number of inputs of a type and returning the same number of outputs of the same type. |