
    AVh                     X    d Z ddlmZ ddlmZ ddlmZ ddlmZ ddZej                  Z	y)	zndarray class.    )dtypes)tensor)tensor_conversion)	np_dtypesNc                     |&t        | t              r| dk\  rt        j                  }n(|&|$t        | t              rt        j                         }t        j                  | ||      S )a  Wrapper over `tf.convert_to_tensor`.

  Args:
    value: value to convert
    dtype: (optional) the type we would like it to be converted to.
    dtype_hint: (optional) soft preference for the type we would like it to be
      converted to. `tf.convert_to_tensor` will attempt to convert value to this
      type first, but will not fail if conversion is not possible falling back
      to inferring the type instead.

  Returns:
    Value converted to tf.Tensor.
  l            )dtype
dtype_hint)	
isinstanceintr   uint64floatr   default_float_typer   "convert_to_tensor_v2_with_dispatch)valuer   r	   s      Y/home/dcms/DCMS/lib/python3.12/site-packages/tensorflow/python/ops/numpy_ops/np_arrays.pyconvert_to_tensorr      s]      m
5#.unMME}+
5%0H((*E		=	=5Z
1 1    )NN)
__doc__tensorflow.python.frameworkr   r   r   tensorflow.python.ops.numpy_opsr   r   Tensorndarray r   r   <module>r      s(     / . 9 512 --r   