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

Method __init__

encoder.py:135–139  ·  view source on GitHub ↗
(self, obs_shape, feature_dim, num_layers, num_filters,*args)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected