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

Function get_tf_version_tuple

tensorpack/tfutils/common.py:152–156  ·  view source on GitHub ↗

Return TensorFlow version as a 2-element tuple (for comparison).

()

Source from the content-addressed store, hash-verified

150
151
152def get_tf_version_tuple():
153 """
154 Return TensorFlow version as a 2-element tuple (for comparison).
155 """
156 return tuple(map(int, tf.__version__.split('.')[:2]))

Callers 15

testMethod · 0.90
Improved-WGAN.pyFile · 0.90
saliency-maps.pyFile · 0.90
predict.pyFile · 0.90
_setup_graphMethod · 0.90
allreduce_gradsFunction · 0.85
call_for_each_towerMethod · 0.85
buildMethod · 0.85
monkeypatch_tf_layersFunction · 0.85
BatchNormFunction · 0.85
get_sync_bn_mean_varFunction · 0.85

Calls

no outgoing calls

Tested by 1

testMethod · 0.72