VanillaMlpEncoder
Multi layer perceptron (MLP) for processing state-based inputs.
Args
- observation_space (gym.Space) : Observation space.
- feature_dim (int) : Number of features extracted.
- hidden_dim (int) : Number of hidden units in the hidden layer.
Returns
Mlp-based encoder instance.
Methods:
.forward
Forward method implementation.
Args
- obs (th.Tensor) : Observation tensor.
Returns
Encoded observation tensor.