Takes a input object, and computes the corresponding output of the
module. In general input and output are
Tensors. However, some special sub-classes
like table layers might expect something else. Please,
refer to each module specification for further information.
After a forward(), the ouput state variable should
have been updated to the new value.