class_docstr: Represents the type of the elements in a `Tensor`.
  
  `DType`'s are used to specify the output data type for operations which
  require it, or to inspect the data type of existing `Tensor`'s.
  
  Examples:
  
  >>> tf.constant(1, dtype=tf.int64)
  <tf.Tensor: shape=(), dtype=int64, numpy=1>
  >>> tf.constant(1.0).dtype
  tf.float32
  
  See `tf.dtypes` for a complete list of `DType`'s defined.
class_docstr_tok: ["Represents","the","type","of","the","elements","in","a","`","Tensor","`",".","`","DType","`","'s","are","used","to","specify","the","output","data","type","for","operations","which","require","it",",","or","to","inspect","the","data","type","of","existing","`","Tensor","`","'s",".","Examples",":",">",">",">","tf.constant","(","1",",","dtype=tf.int64",")","<","tf.Tensor",":","shape=","(",")",",","dtype=int64",",","numpy=1",">",">",">",">","tf.constant","(","1.0",")",".dtype","tf.float32","See","`","tf.dtypes","`","for","a","complete","list","of","`","DType","`","'s","defined","."]
docstr: Returns True if the `other` DType will be converted to this DType (TF1).
  
  Programs written for TensorFlow 2.x do not need this function.
  Instead, they can do equality comparison on `DType` objects directly:
  `tf.as_dtype(this) == tf.as_dtype(other)`.
  
  This function exists only for compatibility with TensorFlow 1.x, where it
  additionally allows conversion from a reference type (used by
  `tf.compat.v1.Variable`) to its base type.
  
  Args:
    other: A `DType` (or object that may be converted to a `DType`).
  
  Returns:
    True if a Tensor of the `other` `DType` will be implicitly converted to
    this `DType`.
docstr_tok: ["Returns","True","if","the","`","other","`","DType","will","be","converted","to","this","DType","(","TF1",")",".","Programs","written","for","TensorFlow","2.x","do","not","need","this","function",".","Instead",",","they","can","do","equality","comparison","on","`","DType","`","objects","directly",":","`","tf.as_dtype","(","this",")","==","tf.as_dtype","(","other",")","`",".","This","function","exists","only","for","compatibility","with","TensorFlow","1.x",",","where","it","additionally","allows","conversion","from","a","reference","type","(","used","by","`","tf.compat.v1.Variable","`",")","to","its","base","type",".","Args",":","other",":","A","`","DType","`","(","or","object","that","may","be","converted","to","a","`","DType","`",")",".","Returns",":","True","if","a","Tensor","of","the","`","other","`","`","DType","`","will","be","implicitly","converted","to","this","`","DType","`","."]
code: def is_compatible_with(self, other):
      """Returns True if the `other` DType will be converted to this DType (TF1).
  
      Programs written for TensorFlow 2.x do not need this function.
      Instead, they can do equality comparison on `DType` objects directly:
      `tf.as_dtype(this) == tf.as_dtype(other)`.
  
      This function exists only for compatibility with TensorFlow 1.x, where it
      additionally allows conversion from a reference type (used by
      `tf.compat.v1.Variable`) to its base type.
  
      Args:
        other: A `DType` (or object that may be converted to a `DType`).
  
      Returns:
        True if a Tensor of the `other` `DType` will be implicitly converted to
        this `DType`.
      """
      other = as_dtype(other)
      return self._type_enum in (
          other.as_datatype_enum,
          other.base_dtype.as_datatype_enum,
      )
  
imports: import abc
  import builtins
  import dataclasses
  from typing import Type, Sequence, Optional
  import ml_dtypes
  import numpy
  from tensorflow.core.framework import types_pb2
  from tensorflow.python import pywrap_tensorflow
  from tensorflow.python.framework import _dtypes
  from tensorflow.python.framework import cpp_shape_inference_pb2
  from tensorflow.python.types import doc_typealias
  from tensorflow.python.util.tf_export import tf_export
  from tensorflow.python.types import trace
  from tensorflow.core.function import trace_type
  from tensorflow.tools.docs import doc_controls
label_desc: Use image node_id 10 for calling the DType obj's underlying member method code with example usage: obj.is_compatible_with(other) and returns: unknown