(self, obs_shape, feature_dim, num_layers, num_filters,*args)
| 133 | |
| 134 | class IdentityEncoder(nn.Module): |
| 135 | def __init__(self, obs_shape, feature_dim, num_layers, num_filters,*args): |
| 136 | super().__init__() |
| 137 | |
| 138 | assert len(obs_shape) == 1 |
| 139 | self.feature_dim = obs_shape[0] |
| 140 | |
| 141 | def forward(self, obs, detach=False): |
| 142 | return obs |