Module providing Consciousness Exploration Tools for PyTorch.
Note
This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the gallery for the big picture.
-
class
consciousnet.models.tdvae.Decoder(z_size, hidden_size, x_size, add_sigmoid=True)[source]¶ The decoder layer that converts state to observation.
Because the observation is MNIST image whose elements are values between 0 and 1, the output of this layer are probabilities of elements being 1.
-
__init__(z_size, hidden_size, x_size, add_sigmoid=True)[source]¶ Initializes internal Module state, shared by both nn.Module and ScriptModule.
-
forward(z)[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
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
-
Follow us