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

Method test

models/base_model.py:119–127  ·  view source on GitHub ↗

Forward function used in test time. This function wraps function in no_grad() so we don't save intermediate steps for backprop It also calls to produce additional visualization results

(self)

Source from the content-addressed store, hash-verified

117 net.eval()
118
119 def test(self):
120 """Forward function used in test time.
121
122 This function wraps <forward> function in no_grad() so we don&#x27;t save intermediate steps for backprop
123 It also calls <compute_visuals> to produce additional visualization results
124 """
125 with torch.no_grad():
126 self.forward()
127 self.compute_visuals()
128
129 def compute_visuals(self):
130 """Calculate additional output images for visdom and HTML visualization"""

Callers 1

test.pyFile · 0.80

Calls 2

forwardMethod · 0.95
compute_visualsMethod · 0.95

Tested by

no test coverage detected