
    BVhJ	                     B    d Z ddlZddlZddlmZ ddlmZ ddlmZ d Z	y)z)Utilities for serializing Python objects.    N)dtypes)tensor_shape)collections_abcc                 r   t        | d      r'| j                  j                  | j                         dS t	        |       j
                  t        j                  k(  r:t        | t        j                        r| j                         S | j                         S t        |       r| j                  S t	        |       j                  t        j                  k(  r| j                  S t        | t        j                        r| j                  S t        | t        j                        r| j!                         S t        | t"        j$                        r| j&                  S t        | t(        j*                        rt-        |       S | t.        u rddiS t        | t0        j2                        r| j4                  S t7        d|  d      )zSerializes any object to a JSON-serializable structure.

  Args:
      obj: the object to serialize

  Returns:
      JSON-serializable structure representing `obj`.

  Raises:
      TypeError: if `obj` cannot be serialized.
  
get_config)
class_nameconfigr   __ellipsis__zObject z is not JSON-serializable. You may implement a `get_config()` method on the class (returning a JSON-serializable dictionary) to make it serializable.)hasattr	__class____name__r   type
__module__np
isinstancendarraytolistitemcallabler   	DimensionvalueTensorShapeas_listr   DTypenamer   MappingdictEllipsiswraptObjectProxy__wrapped__	TypeError)objs    T/home/dcms/DCMS/lib/python3.12/site-packages/tensorflow/python/util/serialization.pyget_json_typer%      sM    S,--00CNN<LMM 
#YR[[(#rzz"ZZ\XXZ c]<< 
#Y4==(<<\++,99\--.;;=V\\"88O_,,-9H_.))U&&'??GC5 !" " 	# #    )
__doc__numpyr   r   tensorflow.python.frameworkr   r   tensorflow.python.util.compatr   r%    r&   r$   <module>r,      s    0   . 4 95#r&   