qfnn.qf_net.n_lyr module

class qfnn.qf_net.n_lyr.N_LYR(num_features, init_ang_inc=1, momentum=0.1, training=False)

Bases: torch.nn.modules.module.Module

forward(x, training=True)

Defines 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.

training: bool
class qfnn.qf_net.n_lyr.batch_adj(num_features, momentum=0.1)

Bases: torch.nn.modules.module.Module

forward(x, training=True)

Defines 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.

training: bool
qfnn.qf_net.n_lyr.binarize()
qfnn.qf_net.n_lyr.clipfunc()
class qfnn.qf_net.n_lyr.indiv_adj(num_features, init_ang_inc=1, momentum=0.1, training=False)

Bases: torch.nn.modules.module.Module

forward(x, training=True)

Defines 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()
training: bool