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

Method fn

tensorpack/input_source/input_source.py:395–405  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

393 logger.warn("Using dummy input for debug!")
394
395 def fn():
396 tlist = []
397 ctx = get_current_tower_context()
398 assert ctx is not None
399 assert len(self.shapes) == len(self._spec)
400 for idx, p in enumerate(self._spec):
401 tlist.append(tf.constant(
402 0, dtype=p.dtype,
403 name='dummy-{}-{}'.format(p.name, ctx.index),
404 shape=self.shapes[idx]))
405 return tlist
406 super(DummyConstantInput, self).__init__(fn)
407
408

Callers

nothing calls this directly

Calls 3

appendMethod · 0.80
formatMethod · 0.80

Tested by

no test coverage detected