When called inside a TowerContext, returns the TowerContext. Returns: a :class:`BaseTowerContext` instance or None, if not called under a TowerContext.
()
| 220 | |
| 221 | |
| 222 | def get_current_tower_context(): |
| 223 | """ |
| 224 | When called inside a TowerContext, returns the TowerContext. |
| 225 | |
| 226 | Returns: |
| 227 | a :class:`BaseTowerContext` instance or None, if not called under a TowerContext. |
| 228 | """ |
| 229 | return _CurrentTowerContext |
| 230 | |
| 231 | |
| 232 | def TowerContext(tower_name, is_training, vs_name=''): |
no outgoing calls
no test coverage detected