Return TensorFlow version as a 2-element tuple (for comparison).
()
| 150 | |
| 151 | |
| 152 | def 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])) |
no outgoing calls