jactorch.nn.probability#

Classes

Class ProbabilityBilinear

class ProbabilityBilinear[source]#

Bases: Bilinear

__init__(in1_features, in2_features, out_features, bias=False, norm=True)[source]#

Initialize internal Module state, shared by both nn.Module and ScriptModule.

extra_repr()#

Set the extra representation of the module.

To print customized extra information, you should re-implement this method in your own modules. Both single-line and multi-line strings are acceptable.

Return type:

str

forward(input1, input2)[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.

reset_parameters()#
Return type:

None

in1_features: int#
in2_features: int#
out_features: int#
weight: Tensor#

Class ProbabilityLinear

class ProbabilityLinear[source]#

Bases: Linear

__init__(in_features, out_features, bias=False, norm=True)[source]#

Initialize internal Module state, shared by both nn.Module and ScriptModule.

extra_repr()#

Set the extra representation of the module.

To print customized extra information, you should re-implement this method in your own modules. Both single-line and multi-line strings are acceptable.

Return type:

str

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.

reset_parameters()#
Return type:

None

in_features: int#
out_features: int#
weight: Tensor#

Class ProbabilityNLinear

class ProbabilityNLinear[source]#

Bases: Module

__init__(*nr_categories, bias=False, norm=True)[source]#

Initialize internal Module state, shared by both nn.Module and ScriptModule.

static __new__(cls, *nr_categories, bias=False, norm=True)[source]#
forward(*inputs)[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.

reset_parameters()[source]#