MCPcopy Create free account
hub / github.com/JunlinHan/DCLGAN / eval

Method eval

models/base_model.py:112–117  ·  view source on GitHub ↗

Make models eval mode during test time

(self)

Source from the content-addressed store, hash-verified

110 pass
111
112 def eval(self):
113 """Make models eval mode during test time"""
114 for name in self.model_names:
115 if isinstance(name, str):
116 net = getattr(self, 'net' + name)
117 net.eval()
118
119 def test(self):
120 """Forward function used in test time.

Callers 1

test.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected