o
    ?eJ	                     @   sD   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d Z	dS )z)Utilities for serializing Python objects.    N)dtypes)tensor_shape)collections_abcc                 C   s   t | dr| jj|  dS t| jtjkr$t| tjr | 	 S | 
 S t| r+| jS t| jtjkr6| jS t| tjr?| jS t| tjrI|  S t| tjrR| jS t| tjr\t| S | tu rdddiS t| tjrm| jS t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   Z__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
isinstanceZndarraytolistitemcallabler   Z	DimensionvalueZTensorShapeas_listr   ZDTypenamer   MappingdictEllipsiswraptZObjectProxy__wrapped__	TypeError)obj r   e/home/www/facesmatcher.com/pyenv/lib/python3.10/site-packages/tensorflow/python/util/serialization.pyget_json_type   s.   
r   )
__doc__numpyr   r   Ztensorflow.python.frameworkr   r   Ztensorflow.python.util.compatr   r   r   r   r   r   <module>   s   