
    BVh                     P    d Z ddlmZ ddlmZ ddlmZ ddlmZ d Zd Zd Z	d	 Z
y
)a'  This module defines tensor utilities not found in TensorFlow.

The reason these utilities are not defined in TensorFlow is because they may
not be not fully robust, although they work in the vast majority of cases. So
we define them here in order for their behavior to be consistently verified.
    )dtypes)sparse_tensor)tensor_util)tensor_array_opsc                 f    t        j                  |       xr t        | t        j                         S N)r   
is_tf_type
isinstancer   SparseTensorts    Y/home/dcms/DCMS/lib/python3.12/site-packages/tensorflow/python/autograph/utils/tensors.pyis_dense_tensorr      s-    

 
 
# 8M667
79    c                 6    t        | t        j                        S r   )r
   r   TensorArrayr   s    r   is_tensor_arrayr   "   s    	A'33	44r   c                     t        j                  |       xr6 | j                  t        j                  k(  xr | j
                  j                   S r   )r   r	   dtyper   variantshapendimsr   s    r   is_tensor_listr   &   s>    
 
 
 
# 6>>(A ggmm
r   c                 ~    t        j                  |       xr' t        | d      xr | j                  j                  dk(  S )zEReturns True if a tensor is the result of a tf.range op. Best effort.opRange)r   r	   hasattrr   typer   s    r   is_range_tensorr   /   s1    				"	Pwq$'7	PADDII<PPr   N)__doc__tensorflow.python.frameworkr   r   r   tensorflow.python.opsr   r   r   r   r    r   r   <module>r$      s-    / 5 3 295Qr   