| 132 | |
| 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 |
| 143 | |
| 144 | def copy_conv_weights_from(self, source): |
| 145 | pass |
| 146 | |
| 147 | def log(self, L, step, log_freq): |
| 148 | pass |
| 149 | |
| 150 | |
| 151 | class PixelDelta2DEncoder(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected