MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / inputs

Method inputs

examples/SuperResolution/enet-pat.py:52–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

50 self.width = width
51
52 def inputs(self):
53 return [tf.TensorSpec((None, self.height * 1, self.width * 1, CHANNELS), tf.float32, 'Ilr'),
54 tf.TensorSpec((None, self.height * 4, self.width * 4, CHANNELS), tf.float32, 'Ihr')]
55
56 def build_graph(self, Ilr, Ihr):
57 Ilr, Ihr = Ilr / 255.0, Ihr / 255.0

Callers 2

_build_gan_trainerMethod · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected