MCPcopy Create free account
hub / github.com/WendyShang/flare / IdentityEncoder

Class IdentityEncoder

encoder.py:134–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132
133
134class 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
151class PixelDelta2DEncoder(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected