MCPcopy Create free account
hub / github.com/baegwangbin/surface_normal_uncertainty / forward

Method forward

models/submodules/encoder.py:22–30  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

20 self.original_model = basemodel
21
22 def forward(self, x):
23 features = [x]
24 for k, v in self.original_model._modules.items():
25 if (k == 'blocks'):
26 for ki, vi in v._modules.items():
27 features.append(vi(features[-1]))
28 else:
29 features.append(v(features[-1]))
30 return features
31
32

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected