()
| 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 |
nothing calls this directly
no test coverage detected