MCPcopy
hub / github.com/PaddlePaddle/PaddleGAN / eval

Method eval

ppgan/models/base_model.py:145–148  ·  view source on GitHub ↗

Make nets eval mode during test time

(self)

Source from the content-addressed store, hash-verified

143 return self.metrics
144
145 def eval(self):
146 """Make nets eval mode during test time"""
147 for net in self.nets.values():
148 net.eval()
149
150 def train(self):
151 """Make nets train mode during train time"""

Callers 15

test_iterMethod · 0.95
__init__Method · 0.80
_get_activationsFunction · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by 15

test_iterMethod · 0.76
test_iterMethod · 0.64
test_iterMethod · 0.64
test_iterMethod · 0.64
test_iterMethod · 0.64
test_iterMethod · 0.64
test_iterMethod · 0.64
test_iterMethod · 0.64
test_iterMethod · 0.64
test_iterMethod · 0.64
test_iterMethod · 0.64
test_iterMethod · 0.64