B
    ð»ˆd_  ã               @   s.   d Z ddlmZ dd„ ZdgZe ee¡ dS )z8Schema utilities to get builtin code from operator code.é    )Úall_utilc             C   s4   t | dƒr&t| jƒr&t|  ¡ |  ¡ ƒS t| j| jƒS )a‰  Return the builtin code of the given operator code.

  The following method is introduced to resolve op builtin code shortage
  problem. The new builtin operator will be assigned to the extended builtin
  code field in the flatbuffer schema. Those methods helps to hide builtin code
  details.

  Args:
    opcode: Operator code.

  Returns:
    The builtin code of the given operator code.
  ÚBuiltinCode)ÚhasattrÚcallabler   ÚmaxZDeprecatedBuiltinCodeZbuiltinCodeZdeprecatedBuiltinCode)Úopcode© r   úT/var/www/html/venv/lib/python3.7/site-packages/tensorflow/lite/python/schema_util.pyÚ#get_builtin_code_from_operator_code   s    r
   N)Ú__doc__Ztensorflow.python.utilr   r
   Z_allowed_symbolsZremove_undocumentedÚ__name__r   r   r   r	   Ú<module>   s   