(dtype)
return tf.as_dtype(dtype)
Converts a native python or numpy type to TF DType.

  Args:
    dtype: Could be a python type, a numpy type or a TF DType.

  Returns:
    A tensorflow `DType`.
Converts a native python or numpy type to TF DType.
Converts a native python or numpy type to TF DType .
def _to_tf_type(dtype):
  """Converts a native python or numpy type to TF DType.

  Args:
    dtype: Could be a python type, a numpy type or a TF DType.

  Returns:
    A tensorflow `DType`.
  """
  return tf.as_dtype(dtype)
def _to_tf_type ( dtype ) : return tf . as_dtype ( dtype )