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

Function get_current_tower_context

tensorpack/tfutils/tower.py:222–229  ·  view source on GitHub ↗

When called inside a TowerContext, returns the TowerContext. Returns: a :class:`BaseTowerContext` instance or None, if not called under a TowerContext.

()

Source from the content-addressed store, hash-verified

220
221
222def 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
232def TowerContext(tower_name, is_training, vs_name=''):

Callers 15

__init__Method · 0.90
generate_fpn_proposalsFunction · 0.90
build_graphMethod · 0.90
get_costFunction · 0.85
fnMethod · 0.85
BatchNormFunction · 0.85
get_bn_variablesFunction · 0.85
get_sync_bn_mean_varFunction · 0.85
BatchNormFunction · 0.85
BatchRenormFunction · 0.85
regularize_costFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected