(name)
| 231 | from ..train.tower import TowerTrainer # noqa |
| 232 | |
| 233 | def get_tensor(name): |
| 234 | msg = "Tensor {} not found in the graph!".format(name) |
| 235 | try: |
| 236 | return get_op_or_tensor_by_name(name) |
| 237 | except KeyError: |
| 238 | pass |
| 239 | if not isinstance(self.trainer, TowerTrainer): |
| 240 | raise KeyError(msg) |
| 241 | towers = self.trainer.towers |
| 242 | try: |
| 243 | return towers.training()[0][name] |
| 244 | except KeyError: |
| 245 | raise KeyError(msg) |
| 246 | return [get_tensor(name) for name in names] |
| 247 | |
| 248 |
nothing calls this directly
no test coverage detected