def dtype_enum(self): """The dtype of this TypeShape as an enum.""" return tf.as_dtype(self.dtype).as_datatype_enum