MCPcopy Create free account
hub / github.com/LAMDA-CL/CVPR22-Fact / encode

Method encode

models/fact/Network.py:69–73  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

67 return x
68
69 def encode(self, x):
70 x = self.encoder(x)
71 x = F.adaptive_avg_pool2d(x, 1)
72 x = x.squeeze(-1).squeeze(-1)
73 return x
74
75 def pre_encode(self,x):
76

Callers 6

forward_metricMethod · 0.95
forpass_fcMethod · 0.95
forwardMethod · 0.95
update_fcMethod · 0.95
base_trainFunction · 0.45
test_intergrateMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_intergrateMethod · 0.36