Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_metric
Method · 0.95
forpass_fc
Method · 0.95
forward
Method · 0.95
update_fc
Method · 0.95
base_train
Function · 0.45
test_intergrate
Method · 0.45
Calls
no outgoing calls
Tested by
1
test_intergrate
Method · 0.36