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

Method forward

models/fact/Network.py:119–127  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

117 return x
118
119 def forward(self, input):
120 if self.mode != 'encoder':
121 input = self.forward_metric(input)
122 return input
123 elif self.mode == 'encoder':
124 input = self.encode(input)
125 return input
126 else:
127 raise ValueError('Unknown mode')
128
129 def update_fc(self,dataloader,class_list,session):
130 for batch in dataloader:

Callers

nothing calls this directly

Calls 2

forward_metricMethod · 0.95
encodeMethod · 0.95

Tested by

no test coverage detected