orca_modules module

This module contains the encoder and decoder modules which are components of the Orca models.

class orca_modules.Decoder[source]

Bases: torch.nn.modules.module.Module

forward(x, distenc, y=None)[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 orca_modules.Decoder_1m[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 orca_modules.Encoder[source]

Bases: torch.nn.modules.module.Module

forward(x)[source]

Forward propagation of a batch.

class orca_modules.Encoder2[source]

Bases: torch.nn.modules.module.Module

forward(x)[source]

Forward propagation of a batch.

class orca_modules.Encoder3[source]

Bases: torch.nn.modules.module.Module

forward(x)[source]

Forward propagation of a batch.

class orca_modules.Net(num_1d=None)[source]

Bases: torch.nn.modules.module.Module

forward(x)[source]

Forward propagation of a batch.