fnet.nn_modules package

Submodules

fnet.nn_modules.dummy module

class fnet.nn_modules.dummy.DummyModel(some_param=42)[source]

Bases: torch.nn.modules.module.Module

fnet.nn_modules.fnet_nn_2d module

class fnet.nn_modules.fnet_nn_2d.Net[source]

Bases: torch.nn.modules.module.Module

forward(x)[source]

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.

class fnet.nn_modules.fnet_nn_2d.SubNet2Conv(n_in, n_out)[source]

Bases: torch.nn.modules.module.Module

forward(x)[source]

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.

fnet.nn_modules.fnet_nn_3d module

class fnet.nn_modules.fnet_nn_3d.Net[source]

Bases: fnet.nn_modules.fnet_nn_3d_params.Net

fnet.nn_modules.fnet_nn_3d_params module

class fnet.nn_modules.fnet_nn_3d_params.Net(depth=4, mult_chan=32, in_channels=1, out_channels=1)[source]

Bases: torch.nn.modules.module.Module

forward(x)[source]

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.

class fnet.nn_modules.fnet_nn_3d_params.SubNet2Conv(n_in, n_out)[source]

Bases: torch.nn.modules.module.Module

forward(x)[source]

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.

Module contents