ObsDecoder¶
- class torchrl.modules.ObsDecoder(channels=32, num_layers=4, kernel_sizes=None, depth=None)[源代码]¶
观察解码器网络。
接收确定性状态和随机信念,并将其解码为像素观察。
参考: 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
。