MCPcopy Create free account
hub / github.com/deepbrainai-research/float / forward

Method forward

models/float/encoder.py:267–286  ·  view source on GitHub ↗
(self, input_source, input_target, h_start=None)

Source from the content-addressed store, hash-verified

265 return h_motion
266
267 def forward(self, input_source, input_target, h_start=None):
268
269 if input_target is not None:
270
271 h_source, feats = self.net_app(input_source)
272 h_target, _ = self.net_app(input_target)
273
274 h_motion_target = self.fc(h_target)
275
276 if h_start is not None:
277 h_motion_source = self.fc(h_source)
278 h_motion = [h_motion_target, h_motion_source, h_start]
279 else:
280 h_motion = [h_motion_target]
281
282 return h_source, h_motion, feats
283 else:
284 h_source, feats = self.net_app(input_source)
285
286 return h_source, None, feats

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected