ObsDecoder¶
- class torchrl.modules.ObsDecoder(channels=32, num_layers=4, kernel_sizes=None, depth=None)[source]¶
观测解码器网络。
将确定性状态和随机信念解码为像素观测。
参考: https://arxiv.org/abs/1803.10122
- 参数:
channels (int, optional) – 最后一层的隐藏单元数。默认为 32。
num_layers (int, optional) – 网络的深度。默认为 4。
kernel_sizes (int or list of int, optional) – 每层的 kernel_size。如果 num_layers 为 4,则默认为
[5, 5, 6, 6]
,否则为[5] * num_layers
。