jactorch.nn.neural_logic.modules.dimension#
Classes
Class Expander
- class Expander[source]#
Bases:
Module
- forward(input, n=None)[source]#
Define the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
Class Permutation
- class Permutation[source]#
Bases:
Module
- forward(input)[source]#
Define the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
Class Reducer
- class Reducer[source]#
Bases:
Module
- __init__(dim, exclude_self=True, exists=True, min_val=0., max_val=0.)[source]#
Initialize internal Module state, shared by both nn.Module and ScriptModule.
- forward(input, mask=None)[source]#
Define the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.