message: TFTRT: use six.text_type and six.binary_type
diff: @@ -48,13 +48,7 @@ from tensorflow.python.training import saver
  def _to_bytes(s):
  """Returns encoded of s if s is a sequence of chars otherwise returns s.
  """
  - if _six.PY2:
  - if isinstance(s, unicode):
  - return s.encode("utf-8", errors="surrogateescape")
  - else:
  - return s
  - else:
  - if isinstance(s, str):
  + if isinstance(s, _six.text_type):
  return s.encode("utf-8", errors="surrogateescape")
  else:
  return s
  @@ -62,13 +56,7 @@ def _to_bytes(s):
  def _to_string(s):
  """Returns decoded of s if s is a sequence of bytes otherwise returns s.
  """
  - if _six.PY2:
  - if isinstance(s, str):
  - return s.decode("utf-8")
  - else:
  - return s
  - else:
  - if isinstance(s, bytes):
  + if isinstance(s, _six.binary_type):
  return s.decode("utf-8")
  else:
  return s
  