as_dtype

dragon.vm.tensorflow.dtypes.as_dtype(type_value)[source]

Convert a data type value into tf.DType.

Parameters:
  • type_value (Any) – The data type.
Returns:

dragon.vm.tensorflow.dtypes.DType – The tensorflow data type.