(target_version_str)
return satisfied
A convenient function to check TF version.

  Args:
    target_version_str: a string, e.g. '1.14', '1.12.0'

  Returns:
    True if TF version is greater or equal than target version.
A convenient function to check TF version.
A convenient function to check TF version .
def tf_version_satisfy(target_version_str):
  '''
  A convenient function to check TF version.

  Args:
    target_version_str: a string, e.g. '1.14', '1.12.0'

  Returns:
    True if TF version is greater or equal than target version.
  '''
  current_version_str = tf.__version__
  current_version = [int(num) for num in current_version_str.split('.')]
  target_version = [int(num) for num in target_version_str.split('.')]
  satisfied = current_version >= target_version
  return satisfied
def tf_version_satisfy ( target_version_str ) : current_version_str = tf . __version__ current_version = [ int ( num ) for num in current_version_str . split ( '.' ) ] target_version = [ int ( num ) for num in target_version_str . split ( '.' ) ] satisfied = current_version >= target_version return satisfied