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ede =e”ZdJej;ej3 dKej;e dLej;e fddZedej!ej"ej#ej$ej%ej&ej'ej(ej)ej*ej+ej,ej-ej.ej/ej0ej1ej2ej3ej4ej5ej6ej7ej8Zedej!ej"ej#ej$ej%ej&ej'ej(ej)ej*ej+ej,ej-ej.ej/ej0ej1ej2ej3ej4ej5ej6ej7ej8ZdādJej;ej2 dKej;e dLej;e fddZede =e”ZdJej;ej2 dKej;e dLej;e fddZedej!ej"ej#ej$ej%ej&ej'ej(ej)ej*ej+ej,ej-ej.ej/ej0ej1ej2ej3ej4ej5ej6ej7ej8Zedej!ej"ej#ej$ej%ej&ej'ej(ej)ej*ej+ej,ej-ej.ej/ej0ej1ej2ej3ej4ej5ej6ej7ej8ZdādJej;ej3 dKej;e dLej;e fddZede =e”ZdJej;ej3 dKej;e dLej;e fdd Zed”ej!ej"ej#ej$ej%ej&ej'ej(ej)ej*ej+ej,ej-ej.ej/ej0ej1ej2ej3ej4ej5ej6ej7ej8Zed¢ej!ej"ej#ej$ej%ej&ej'ej(ej)ej*ej+ej,ej-ej.ej/ej0ej1ej2ej3ej4ej5ej6ej7ej8ZdādJej;ej2 dKej;e dLej;e fd£d¤Zed„e =e”ZdJej;ej2 dKej;e dLej;e fd¦d§ZedØej!ej"ej#ej$ej%ej&ej'ej(ej)ej*ej+ej,ej-ej.ej/ej0ej1ej2ej3ej4ej5ej6ej7ej8ZdādJej;ej2 dKej;e fd©dŖZed«e =e”ZdJej;ej2 dKej;e fd¬d­ZdādJej;ej3 dej;ej+ fd®dÆZed°e =e”ZdJej;ej3 dej;ej+ fd±d²ZdādJej;ej2 dej;ej+ fd³d“Zedµe =e”Z dJej;ej2 dej;ej+ fd¶d·Z”edøej!ej"ej#ej$ej%ej&ej'ej(ej)ej*ej+ej,ej-ej.ej/ej0ej1ej2ej3ej4ej5ej6ej7ej8Z¢ed¹ej!ej"ej#ej$ej%ej&ej'ej(ej)ej*ej+ej,ej-ej.ej/ej0ej1ej2ej3ej4ej5ej6ej7ej8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d8g dfde¶de·d9eSd:eSd;eTdej;ej2 fdÖd×ZøedŲe =eø”Z¹de¶de·d9eSd:eSd;eTdej;ej2 fdŁdŚZŗedŪej!ej"ej#ej$ej%ej&ej'ej(ej)ej*ej+ej,ej-ej.ej/ej0ej1ej2ej3ej4ej5ej6ej7ej8Z»edÜej!ej"ej#ej$ej%ej&ej'ej(ej)ej*ej+ej,ej-ej.ej/ej0ej1ej2ej3ej4ej5ej6ej7ej8Z¼dćde»de¼d9eSd:eSd;eTdej;ej2 fdŻdŽZ½edße =e½”Z¾de»de¼d9eSd:eSd;eTdej;ej2 fdądįZædS )åzUPython wrappers around TensorFlow ops.

This file is MACHINE GENERATED! Do not edit.
é    N)Ś
pywrap_tfe)Ścontext)Ścore)Śexecute)Śdtypes)Śannotation_types)Śop_def_registry)Śops)Śop_def_library)Śdeprecated_endpoints)Śdispatch)Ś	tf_export)ŚTypeVarŚListŚTV_AnonymousHashTable_key_dtypeŚ!TV_AnonymousHashTable_value_dtypeŚ	key_dtypeŚvalue_dtypeŚreturnc              
   C   ó"  t j pt  ” }|j}|jrRzt |d|d| d|”}|W S  tjy4 } zt 	||” W Y d}~nd}~w tj
y=   Y nw z	t| |||dW S  tjyQ   Y nw t | d”} t |d”}tjd| ||d\}}}}	|	dd }t ” rd| d”d| d”f}
|j}t d||
|” |\}|S )a!  Creates a uninitialized anonymous hash table.

  This op creates a new anonymous hash table (as a resource) everytime
  it is executed, with the specified dtype of its keys and values,
  returning the resource handle.  Before using the table you will have
  to initialize it.  After initialization the table will be
  immutable. The table is anonymous in the sense that it can only be
  accessed by the returned resource handle (e.g. it cannot be looked up
  by a name in a resource manager). The table will be automatically
  deleted when all resource handles pointing to it are gone.

  Args:
    key_dtype: A `tf.DType`. Type of the table keys.
    value_dtype: A `tf.DType`. Type of the table values.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `resource`.
  ŚAnonymousHashTabler   r   N©r   r   ŚnameŚctx©r   r   r   )Ś_contextr   Ś_thread_local_dataŚis_eagerr   ŚTFE_Py_FastPathExecuteŚ_coreŚ_NotOkStatusExceptionŚ_opsŚraise_from_not_ok_statusŚ_FallbackExceptionŚ#anonymous_hash_table_eager_fallbackŚ_SymbolicExceptionŚ_executeŚ	make_typeŚ_op_def_libraryŚ_apply_op_helperŚmust_record_gradientŚ_get_attr_typeŚinputsŚrecord_gradient©r   r   r   Ś_ctxŚtldŚ_resultŚeŚ_Ś_opŚ_outputsŚ_attrsŚ_inputs_flat© r8   śe/home/www/facesmatcher.com/pyenv/lib/python3.10/site-packages/tensorflow/python/ops/gen_lookup_ops.pyŚanonymous_hash_table   sN   
ž’’’ž’’r:   zraw_ops.AnonymousHashTablec                 C   ó`   t  | d”} t  |d”}g }d| d|f}t jdd||||d}t  ” r+t  d|||” |\}|S )Nr   r   s   AnonymousHashTableé   ©r,   Śattrsr   r   r   ©r&   r'   r   r*   r-   ©r   r   r   r   r7   r6   r1   r8   r8   r9   r$   S   s   
’’r$   Ś+TV_AnonymousMutableDenseHashTable_key_dtypeŚ-TV_AnonymousMutableDenseHashTable_value_dtypeé   ēé?Ś	empty_keyŚdeleted_keyŚinitial_num_bucketsŚmax_load_factorc                 C   s  t j pt  ” }|j}|jr\zt |d|| |d|d|d|d|”}	|	W S  tjy: }
 zt 	|
|” W Y d}
~
nd}
~
w tj
yC   Y nw zt| |||||||dW S  tjy[   Y nw t |d”}|du rhg }t |d”}|du rtd}t |d”}|du rd	}t |d”}tjd| ||||||d
\}}}}|dd }	t ” rĒd| d”d| d”d| d”d| d”d| d”f
}|j}t d|||	” |	\}	|	S )a&  Creates an empty anonymous mutable hash table that uses tensors as the backing store.

  This op creates a new anonymous mutable hash table (as a resource) everytime
  it is executed, with the specified dtype of its keys and values,
  returning the resource handle. Each value must be a scalar.
  Data can be inserted into the table using
  the insert operations. It does not support the initialization operation.

  It uses "open addressing" with quadratic reprobing to resolve
  collisions.

  The table is anonymous in the sense that it can only be
  accessed by the returned resource handle (e.g. it cannot be looked up
  by a name in a resource manager). The table will be automatically
  deleted when all resource handles pointing to it are gone.

  Args:
    empty_key: A `Tensor`.
      The key used to represent empty key buckets internally. Must not
      be used in insert or lookup operations.
    deleted_key: A `Tensor`. Must have the same type as `empty_key`.
    value_dtype: A `tf.DType`. Type of the table values.
    value_shape: An optional `tf.TensorShape` or list of `ints`. Defaults to `[]`.
      The shape of each value.
    initial_num_buckets: An optional `int`. Defaults to `131072`.
      The initial number of hash table buckets. Must be a power
      to 2.
    max_load_factor: An optional `float`. Defaults to `0.8`.
      The maximum ratio between number of entries and number of
      buckets before growing the table. Must be between 0 and 1.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `resource`.
  ŚAnonymousMutableDenseHashTabler   Śvalue_shaperG   rH   N)r   rJ   rG   rH   r   r   rC   rD   )rE   rF   r   rJ   rG   rH   r   r   )r   r   r   r   r   r   r   r    r!   r"   r#   Ś1anonymous_mutable_dense_hash_table_eager_fallbackr%   r&   r'   Ś
make_shapeŚmake_intŚ
make_floatr(   r)   r*   r+   Śget_attrŚ_get_attr_intr,   r-   )rE   rF   r   rJ   rG   rH   r   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r8   r9   Ś"anonymous_mutable_dense_hash_tabled   sv   $
ü’ż’ł


ü’rQ   z&raw_ops.AnonymousMutableDenseHashTablec              
   C   sŹ   t  |d”}|d u rg }t  |d”}|d u rd}t  |d”}|d u r$d}t  |d”}t  | |g|g ”\}}	|	\} }| |g}
d|d|d|d|d|f
}t jdd	|
|||d
}t  ” r`t  d|
||” |\}|S )Nr   rJ   rC   rG   rD   rH   r   s   AnonymousMutableDenseHashTabler<   r=   rI   )	r&   r'   rL   rM   rN   Śargs_to_matching_eagerr   r*   r-   )rE   rF   r   rJ   rG   rH   r   r   Ś_attr_key_dtypeŚ_inputs_key_dtyper7   r6   r1   r8   r8   r9   rK   Ą   s6   žž’rK   Ś&TV_AnonymousMutableHashTable_key_dtypeŚ(TV_AnonymousMutableHashTable_value_dtypec              
   C   r   )aQ  Creates an empty anonymous mutable hash table.

  This op creates a new anonymous mutable hash table (as a resource) everytime
  it is executed, with the specified dtype of its keys and values,
  returning the resource handle. Each value must be a scalar.
  Data can be inserted into the table using
  the insert operations. It does not support the initialization operation.
  The table is anonymous in the sense that it can only be
  accessed by the returned resource handle (e.g. it cannot be looked up
  by a name in a resource manager). The table will be automatically
  deleted when all resource handles pointing to it are gone.

  Args:
    key_dtype: A `tf.DType`. Type of the table keys.
    value_dtype: A `tf.DType`. Type of the table values.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `resource`.
  ŚAnonymousMutableHashTabler   r   Nr   r   )r   r   r   r   r   r   r   r    r!   r"   r#   Ś+anonymous_mutable_hash_table_eager_fallbackr%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r8   r8   r9   Śanonymous_mutable_hash_tableŽ   sN   
ž’’’ž’’rY   z!raw_ops.AnonymousMutableHashTablec                 C   r;   )Nr   r   s   AnonymousMutableHashTabler<   r=   rW   r?   r@   r8   r8   r9   rX     s   ž’rX   Ś/TV_AnonymousMutableHashTableOfTensors_key_dtypeŚ1TV_AnonymousMutableHashTableOfTensors_value_dtypec                 C   sL  t j pt  ” }|j}|jrUzt |d|d| d|d|”	}|W S  tjy6 } zt 	||” W Y d}~nd}~w tj
y?   Y nw z
t| ||||dW S  tjyT   Y nw t | d”} t |d”}|du rgg }t |d”}tjd| |||d\}}}	}
|
dd }t ” r”d|	 d”d|	 d”d|	 d”f}|	j}t d|||” |\}|S )aµ  Creates an empty anonymous mutable hash table of vector values.

  This op creates a new anonymous mutable hash table (as a resource) everytime
  it is executed, with the specified dtype of its keys and values,
  returning the resource handle. Each value must be a vector.
  Data can be inserted into the table using
  the insert operations. It does not support the initialization operation.
  The table is anonymous in the sense that it can only be
  accessed by the returned resource handle (e.g. it cannot be looked up
  by a name in a resource manager). The table will be automatically
  deleted when all resource handles pointing to it are gone.

  Args:
    key_dtype: A `tf.DType`. Type of the table keys.
    value_dtype: A `tf.DType`. Type of the table values.
    value_shape: An optional `tf.TensorShape` or list of `ints`. Defaults to `[]`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `resource`.
  Ś"AnonymousMutableHashTableOfTensorsr   r   rJ   N)r   r   rJ   r   r   )r   r   rJ   r   )r   r   r   r   r   r   r   r    r!   r"   r#   Ś6anonymous_mutable_hash_table_of_tensors_eager_fallbackr%   r&   r'   rL   r(   r)   r*   r+   rO   r,   r-   )r   r   rJ   r   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r8   r9   Ś'anonymous_mutable_hash_table_of_tensors)  s\   
ž’ž’ü
ž’r^   z*raw_ops.AnonymousMutableHashTableOfTensorsc                 C   s|   t  | d”} t  |d”}|d u rg }t  |d”}g }d| d|d|f}t jdd||||d}t  ” r9t  d|||” |\}|S )Nr   r   rJ   s"   AnonymousMutableHashTableOfTensorsr<   r=   r\   )r&   r'   rL   r   r*   r-   )r   r   rJ   r   r   r7   r6   r1   r8   r8   r9   r]   j  s&   
’ž’r]   ŚTV_HashTable_key_dtypeŚTV_HashTable_value_dtypeŚ FŚ	containerŚshared_nameŚuse_node_name_sharingc                 C   ó  t j pt  ” }|j}|jrtdt | d”} t |d”}|du r#d}t |d”}|du r/d}t |d”}|du r;d}t |d	”}t	j
d
| |||||d\}}}	}
|
dd }t ” rd|	 d”d|	 d”d	|	 d	”d|	 d”d|	 d”f
}|	j}t d
|||” |\}|S )a  Creates a non-initialized hash table.

  This op creates a hash table, specifying the type of its keys and values.
  Before using the table you will have to initialize it.  After initialization the
  table will be immutable.

  Args:
    key_dtype: A `tf.DType`. Type of the table keys.
    value_dtype: A `tf.DType`. Type of the table values.
    container: An optional `string`. Defaults to `""`.
      If non-empty, this table is placed in the given container.
      Otherwise, a default container is used.
    shared_name: An optional `string`. Defaults to `""`.
      If non-empty, this table is shared under the given name across
      multiple sessions.
    use_node_name_sharing: An optional `bool`. Defaults to `False`.
      If true and shared_name is empty, the table is shared
      using the node name.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type mutable `string`.
  śLhash_table op does not support eager execution. Arg 'table_handle' is a ref.r   r   Nra   rb   rc   Frd   Ś	HashTable©r   r   rb   rc   rd   r   ©r   r   r   r   ŚRuntimeErrorr&   r'   Śmake_strŚ	make_boolr(   r)   r*   rO   Ś_get_attr_boolr+   r,   r-   ©r   r   rb   rc   rd   r   r/   r0   r3   r4   r5   r1   r6   r7   r8   r8   r9   Ś
hash_table  sD   ż


ü’ro   zraw_ops.HashTablec                 C   ó   t d)Nrf   ©rj   ©r   r   rb   rc   rd   r   r   r8   r8   r9   Śhash_table_eager_fallback¼  ó   rs   ŚTV_HashTableV2_key_dtypeŚTV_HashTableV2_value_dtypec                 C   ó   t j pt  ” }|j}|jr[zt |d|d|d|d|d| d|”}|W S  tjy: }	 zt 	|	|” W Y d}	~	nd}	~	w tj
yC   Y nw zt|||| |||dW S  tjyZ   Y nw t | d”} t |d”}|du rmd	}t |d”}|du ryd	}t |d”}|du rd
}t |d”}tjd| |||||d\}
}
}}|dd }t ” rĖd| d”d| d”d| d”d| d”d| d”f
}|j}t d|||” |\}|S )a  Creates a non-initialized hash table.

  This op creates a hash table, specifying the type of its keys and values.
  Before using the table you will have to initialize it.  After initialization the
  table will be immutable.

  Args:
    key_dtype: A `tf.DType`. Type of the table keys.
    value_dtype: A `tf.DType`. Type of the table values.
    container: An optional `string`. Defaults to `""`.
      If non-empty, this table is placed in the given container.
      Otherwise, a default container is used.
    shared_name: An optional `string`. Defaults to `""`.
      If non-empty, this table is shared under the given name across
      multiple sessions.
    use_node_name_sharing: An optional `bool`. Defaults to `False`.
      If true and shared_name is empty, the table is shared
      using the node name.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `resource`.
  ŚHashTableV2rb   rc   rd   r   r   N©rb   rc   rd   r   r   r   r   ra   Frh   )r   r   r   r   r   r   r   r    r!   r"   r#   Śhash_table_v2_eager_fallbackr%   r&   r'   rk   rl   r(   r)   r*   rO   rm   r+   r,   r-   ©r   r   rb   rc   rd   r   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r8   r9   Śhash_table_v2Ā  sn   ż’ż’ż


ü’r|   zraw_ops.HashTableV2c           
   
   C   ó“   t  | d”} t  |d”}|d u rd}t  |d”}|d u rd}t  |d”}|d u r*d}t  |d”}g }d|d|d|d| d|f
}t jdd	||||d
}	t  ” rUt  d|||	” |	\}	|	S )Nr   r   ra   rb   rc   Frd   s   HashTableV2r<   r=   rx   ©r&   r'   rk   rl   r   r*   r-   ©
r   r   rb   rc   rd   r   r   r7   r6   r1   r8   r8   r9   rz     ó2   ž
’’rz   ŚTV_InitializeTable_TkeyŚTV_InitializeTable_TvalŚtable_handleŚkeysŚvaluesc           	      C   óB   t j pt  ” }|j}|jrtdtjd| |||d\}}}}|S )al  Table initializer that takes two tensors for keys and values respectively.

  Args:
    table_handle: A `Tensor` of type mutable `string`.
      Handle to a table which will be initialized.
    keys: A `Tensor`. Keys of type Tkey.
    values: A `Tensor`. Values of type Tval.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  śRinitialize_table op does not support eager execution. Arg 'table_handle' is a ref.ŚInitializeTable©r   r   r   r   ©r   r   r   r   rj   r(   r)   ©	r   r   r   r   r/   r0   r3   r4   r5   r8   r8   r9   Śinitialize_table*  s   žr   zraw_ops.InitializeTablec                 C   rp   )Nr   rq   ©r   r   r   r   r   r8   r8   r9   Śinitialize_table_eager_fallbackC  rt   r   é’’’’ś	ŚfilenameŚ	key_indexŚvalue_indexŚ
vocab_sizeŚ	delimiterŚoffsetc                 C   sŖ   t j pt  ” }|j}	|	jrtdt |d”}t |d”}|du r#d}t |d”}|du r/d}t |d”}|du r;d	}t |d
”}tj	d| |||||||d	\}
}
}}|S )a  Initializes a table from a text file.

  It inserts one key-value pair into the table for each line of the file.
  The key and value is extracted from the whole line content, elements from the
  split line based on `delimiter` or the line number (starting from zero).
  Where to extract the key and value from a line is specified by `key_index` and
  `value_index`.

  - A value of -1 means use the line number(starting from zero), expects `int64`.
  - A value of -2 means use the whole line content, expects `string`.
  - A value >= 0 means use the index (starting at zero) of the split line based
    on `delimiter`.

  Args:
    table_handle: A `Tensor` of type mutable `string`.
      Handle to a table which will be initialized.
    filename: A `Tensor` of type `string`. Filename of a vocabulary text file.
    key_index: An `int` that is `>= -2`.
      Column index in a line to get the table `key` values from.
    value_index: An `int` that is `>= -2`.
      Column index that represents information of a line to get the table
      `value` values from.
    vocab_size: An optional `int` that is `>= -1`. Defaults to `-1`.
      Number of elements of the file, use -1 if unknown.
    delimiter: An optional `string`. Defaults to `"\t"`.
      Delimiter to separate fields in a line.
    offset: An optional `int`. Defaults to `0`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  śainitialize_table_from_text_file op does not support eager execution. Arg 'table_handle' is a ref.r   r   Nr   r   r   r   r   r   ŚInitializeTableFromTextFile©r   r   r   r   r   r   r   r   )
r   r   r   r   rj   r&   rM   rk   r(   r)   )r   r   r   r   r   r   r   r   r/   r0   r3   r4   r5   r8   r8   r9   Śinitialize_table_from_text_fileF  s0   !śr   z#raw_ops.InitializeTableFromTextFilec	           	      C   rp   )Nr   rq   )	r   r   r   r   r   r   r   r   r   r8   r8   r9   Ś.initialize_table_from_text_file_eager_fallback  rt   r   c                 C   sF  t j pt  ” }|j}	|	jr_zt |d|| |d|d|d|d|d|”}
|
W S  tjy< } zt 	||” W Y d}~nd}~w tj
yE   Y nw zt| ||||||||d	W S  tjy^   Y nw t |d”}t |d”}|du rqd	}t |d”}|du r}d
}t |d”}|du rd}t |d”}tjd| |||||||d	\}}}}|S )a  Initializes a table from a text file.

  It inserts one key-value pair into the table for each line of the file.
  The key and value is extracted from the whole line content, elements from the
  split line based on `delimiter` or the line number (starting from zero).
  Where to extract the key and value from a line is specified by `key_index` and
  `value_index`.

  - A value of -1 means use the line number(starting from zero), expects `int64`.
  - A value of -2 means use the whole line content, expects `string`.
  - A value >= 0 means use the index (starting at zero) of the split line based
    on `delimiter`.

  Args:
    table_handle: A `Tensor` of type `resource`.
      Handle to a table which will be initialized.
    filename: A `Tensor` of type `string`. Filename of a vocabulary text file.
    key_index: An `int` that is `>= -2`.
      Column index in a line to get the table `key` values from.
    value_index: An `int` that is `>= -2`.
      Column index that represents information of a line to get the table
      `value` values from.
    vocab_size: An optional `int` that is `>= -1`. Defaults to `-1`.
      Number of elements of the file, use -1 if unknown.
    delimiter: An optional `string`. Defaults to `"\t"`.
      Delimiter to separate fields in a line.
    offset: An optional `int`. Defaults to `0`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  ŚInitializeTableFromTextFileV2r   r   r   r   r   N)r   r   r   r   r   r   r   r   r   r   r   )r   r   r   r   r   r   r   r    r!   r"   r#   Ś1initialize_table_from_text_file_v2_eager_fallbackr%   r&   rM   rk   r(   r)   )r   r   r   r   r   r   r   r   r/   r0   r1   r2   r3   r4   r5   r8   r8   r9   Ś"initialize_table_from_text_file_v2  s\   !


ż’ż’łr   z%raw_ops.InitializeTableFromTextFileV2c	              
   C   sŗ   t  |d”}t  |d”}|d u rd}t  |d”}|d u rd}t  |d”}|d u r*d}t  |d”}t | tj”} t |tj”}| |g}	d|d|d|d|d|f
}
t jd	d|	|
||d
}d }|S )Nr   r   r   r   r   r   r   r   s   InitializeTableFromTextFileV2r=   )	r&   rM   rk   r!   Śconvert_to_tensorŚ_dtypesŚresourceŚstringr   )r   r   r   r   r   r   r   r   r   r7   r6   r1   r8   r8   r9   r   Ņ  s.   

’žr   ŚTV_InitializeTableV2_TkeyŚTV_InitializeTableV2_Tvalc              
   C   óÄ   t j pt  ” }|j}|jrRzt |d|| ||”}|W S  tjy3 } zt 	||” W Y d}~nd}~w tj
y<   Y nw z
t| ||||dW S  tjyQ   Y nw tjd| |||d\}}}	}
|	S )af  Table initializer that takes two tensors for keys and values respectively.

  Args:
    table_handle: A `Tensor` of type `resource`.
      Handle to a table which will be initialized.
    keys: A `Tensor`. Keys of type Tkey.
    values: A `Tensor`. Values of type Tval.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  ŚInitializeTableV2N©r   r   r   )r   r   r   r   r   r   r   r    r!   r"   r#   Ś"initialize_table_v2_eager_fallbackr%   r(   r)   ©r   r   r   r   r/   r0   r1   r2   r3   r4   r5   r8   r8   r9   Śinitialize_table_v2ķ  s4   ’’
’’žrŖ   zraw_ops.InitializeTableV2c           
      C   ón   t  |g|g ”\}\}t  |g|g ”\}\}t | tj”} | ||g}d|d|f}t jdd||||d}	d }	|	S )NZTkeyZTvals   InitializeTableV2r   r=   ©r&   rR   r!   r   r    r”   r   )
r   r   r   r   r   Z
_attr_TkeyZ
_attr_Tvalr7   r6   r1   r8   r8   r9   rØ     ó   

’rØ   ŚLookupTableExportŚTV_LookupTableExport_TkeysŚTV_LookupTableExport_TvaluesŚTkeysŚTvaluesc                 C   s¦   t j pt  ” }|j}|jrtdt |d”}t |d”}tjd| |||d\}}}}|dd }	t 	” rLd| 
d”d| 
d”f}
|j}t d||
|	” t |	”}	|	S )aq  Outputs all keys and values in the table.

  Args:
    table_handle: A `Tensor` of type mutable `string`. Handle to the table.
    Tkeys: A `tf.DType`.
    Tvalues: A `tf.DType`.
    name: A name for the operation (optional).

  Returns:
    A tuple of `Tensor` objects (keys, values).

    keys: A `Tensor` of type `Tkeys`.
    values: A `Tensor` of type `Tvalues`.
  śUlookup_table_export op does not support eager execution. Arg 'table_handle' is a ref.r±   r²   r®   ©r   r±   r²   r   N)r   r   r   r   rj   r&   r'   r(   r)   r*   r+   r,   r-   Ś_LookupTableExportOutputŚ_make)r   r±   r²   r   r/   r0   r3   r4   r5   r1   r6   r7   r8   r8   r9   Ślookup_table_export%  s*   ž’’
r·   zraw_ops.LookupTableExportc                 C   rp   )Nr³   rq   )r   r±   r²   r   r   r8   r8   r9   Ś"lookup_table_export_eager_fallbackK  rt   rø   ŚLookupTableExportV2ŚTV_LookupTableExportV2_TkeysŚTV_LookupTableExportV2_Tvaluesc              
   C   s6  t j pt  ” }|j}|jrYzt |d|| d|d|”}t |”}|W S  tj	y: } zt
 ||” W Y d}~nd}~w tjyC   Y nw z
t| ||||dW S  tjyX   Y nw t |d”}t |d”}tjd| |||d\}}}	}
|
dd }t ” rd|	 d”d|	 d”f}|	j}t d|||” t |”}|S )ak  Outputs all keys and values in the table.

  Args:
    table_handle: A `Tensor` of type `resource`. Handle to the table.
    Tkeys: A `tf.DType`.
    Tvalues: A `tf.DType`.
    name: A name for the operation (optional).

  Returns:
    A tuple of `Tensor` objects (keys, values).

    keys: A `Tensor` of type `Tkeys`.
    values: A `Tensor` of type `Tvalues`.
  r¹   r±   r²   N)r±   r²   r   r   r“   )r   r   r   r   r   r   Ś_LookupTableExportV2Outputr¶   r   r    r!   r"   r#   Ś%lookup_table_export_v2_eager_fallbackr%   r&   r'   r(   r)   r*   r+   r,   r-   )r   r±   r²   r   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r8   r9   Ślookup_table_export_v2U  sP   ž
’
’’ž’’
r¾   zraw_ops.LookupTableExportV2c                 C   st   t  |d”}t  |d”}t | tj”} | g}d|d|f}t jdd||||d}t  ” r3t  d|||” t	 
|”}|S )Nr±   r²   s   LookupTableExportV2é   r=   r¹   )r&   r'   r!   r   r    r”   r   r*   r-   r¼   r¶   )r   r±   r²   r   r   r7   r6   r1   r8   r8   r9   r½     s   
’’
r½   ŚTV_LookupTableFind_TinŚTV_LookupTableFind_ToutŚdefault_valuec                 C   s   t j pt  ” }|j}|jrtdtjd| |||d\}}}}|dd }	t ” r@d| 	d”d| 	d”f}
|j
}t d||
|	” |	\}	|	S )ab  Looks up keys in a table, outputs the corresponding values.

  The tensor `keys` must of the same type as the keys of the table.
  The output `values` is of the type of the table values.

  The scalar `default_value` is the value output for keys not present in the
  table. It must also be of the same type as the table values.

  Args:
    table_handle: A `Tensor` of type mutable `string`. Handle to the table.
    keys: A `Tensor`. Any shape.  Keys to look up.
    default_value: A `Tensor`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor`. Has the same type as `default_value`.
  śSlookup_table_find op does not support eager execution. Arg 'table_handle' is a ref.ŚLookupTableFind©r   r   rĀ   r   NŚTinŚTout)r   r   r   r   rj   r(   r)   r&   r*   r+   r,   r-   )r   r   rĀ   r   r/   r0   r3   r4   r5   r1   r6   r7   r8   r8   r9   Ślookup_table_find  s&   ž’’rČ   zraw_ops.LookupTableFindc                 C   rp   )NrĆ   rq   )r   r   rĀ   r   r   r8   r8   r9   Ś lookup_table_find_eager_fallbackĀ  rt   rÉ   ŚTV_LookupTableFindV2_TinŚTV_LookupTableFindV2_Toutc              
   C   s  t j pt  ” }|j}|jrRzt |d|| ||”}|W S  tjy3 } zt 	||” W Y d}~nd}~w tj
y<   Y nw z
t| ||||dW S  tjyQ   Y nw tjd| |||d\}}}	}
|
dd }t ” rd|	 d”d|	 d”f}|	j}t d|||” |\}|S )a\  Looks up keys in a table, outputs the corresponding values.

  The tensor `keys` must of the same type as the keys of the table.
  The output `values` is of the type of the table values.

  The scalar `default_value` is the value output for keys not present in the
  table. It must also be of the same type as the table values.

  Args:
    table_handle: A `Tensor` of type `resource`. Handle to the table.
    keys: A `Tensor`. Any shape.  Keys to look up.
    default_value: A `Tensor`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor`. Has the same type as `default_value`.
  ŚLookupTableFindV2Nr§   rÅ   rĘ   rĒ   )r   r   r   r   r   r   r   r    r!   r"   r#   Ś#lookup_table_find_v2_eager_fallbackr%   r(   r)   r&   r*   r+   r,   r-   )r   r   rĀ   r   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r8   r9   Ślookup_table_find_v2Č  sH   ’’
’’ž’’rĪ   zraw_ops.LookupTableFindV2c           
      C   s   t  |g|g ”\}\}t  |g|g ”\}\}t | tj”} | ||g}d|d|f}t jdd||||d}	t  ” r?t  d|||	” |	\}	|	S )NrĘ   rĒ   s   LookupTableFindV2r<   r=   rĢ   )	r&   rR   r!   r   r    r”   r   r*   r-   )
r   r   rĀ   r   r   Ś	_attr_TinŚ
_attr_Toutr7   r6   r1   r8   r8   r9   rĶ   ū  s   

’’rĶ   ŚTV_LookupTableImport_TinŚTV_LookupTableImport_Toutc           	      C   r   )aå  Replaces the contents of the table with the specified keys and values.

  The tensor `keys` must be of the same type as the keys of the table.
  The tensor `values` must be of the type of the table values.

  Args:
    table_handle: A `Tensor` of type mutable `string`. Handle to the table.
    keys: A `Tensor`. Any shape.  Keys to look up.
    values: A `Tensor`. Values to associate with keys.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  śUlookup_table_import op does not support eager execution. Arg 'table_handle' is a ref.ŚLookupTableImportr   r   r   r8   r8   r9   Ślookup_table_import  ó   žrÕ   zraw_ops.LookupTableImportc                 C   rp   )NrÓ   rq   r   r8   r8   r9   Ś"lookup_table_import_eager_fallback(  rt   r×   ŚTV_LookupTableImportV2_TinŚTV_LookupTableImportV2_Toutc              
   C   r„   )aß  Replaces the contents of the table with the specified keys and values.

  The tensor `keys` must be of the same type as the keys of the table.
  The tensor `values` must be of the type of the table values.

  Args:
    table_handle: A `Tensor` of type `resource`. Handle to the table.
    keys: A `Tensor`. Any shape.  Keys to look up.
    values: A `Tensor`. Values to associate with keys.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  ŚLookupTableImportV2Nr§   r   )r   r   r   r   r   r   r   r    r!   r"   r#   Ś%lookup_table_import_v2_eager_fallbackr%   r(   r)   r©   r8   r8   r9   Ślookup_table_import_v2.  ó4   ’’
’’žrÜ   zraw_ops.LookupTableImportV2c           
      C   r«   )NrĘ   rĒ   s   LookupTableImportV2r   r=   r¬   ©
r   r   r   r   r   rĻ   rŠ   r7   r6   r1   r8   r8   r9   rŪ   U  r­   rŪ   ŚTV_LookupTableInsert_TinŚTV_LookupTableInsert_Toutc           	      C   r   )aŠ  Updates the table to associates keys with values.

  The tensor `keys` must be of the same type as the keys of the table.
  The tensor `values` must be of the type of the table values.

  Args:
    table_handle: A `Tensor` of type mutable `string`. Handle to the table.
    keys: A `Tensor`. Any shape.  Keys to look up.
    values: A `Tensor`. Values to associate with keys.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  śUlookup_table_insert op does not support eager execution. Arg 'table_handle' is a ref.ŚLookupTableInsertr   r   r   r8   r8   r9   Ślookup_table_insertd  rÖ   rć   zraw_ops.LookupTableInsertc                 C   rp   )Nrį   rq   r   r8   r8   r9   Ś"lookup_table_insert_eager_fallback  rt   rä   ŚTV_LookupTableInsertV2_TinŚTV_LookupTableInsertV2_Toutc              
   C   r„   )aŹ  Updates the table to associates keys with values.

  The tensor `keys` must be of the same type as the keys of the table.
  The tensor `values` must be of the type of the table values.

  Args:
    table_handle: A `Tensor` of type `resource`. Handle to the table.
    keys: A `Tensor`. Any shape.  Keys to look up.
    values: A `Tensor`. Values to associate with keys.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  ŚLookupTableInsertV2Nr§   r   )r   r   r   r   r   r   r   r    r!   r"   r#   Ś%lookup_table_insert_v2_eager_fallbackr%   r(   r)   r©   r8   r8   r9   Ślookup_table_insert_v2  rŻ   ré   zraw_ops.LookupTableInsertV2c           
      C   r«   )NrĘ   rĒ   s   LookupTableInsertV2r   r=   r¬   rŽ   r8   r8   r9   rč   ¬  r­   rč   ŚTV_LookupTableRemoveV2_Tinc           
   
   C   s¾   t j pt  ” }|j}|jrPzt |d|| |”}|W S  tjy2 } zt 	||” W Y d}~nd}~w tj
y;   Y nw z	t| |||dW S  tjyO   Y nw tjd| ||d\}}}}	|S )a  Removes keys and its associated values from a table.

  The tensor `keys` must of the same type as the keys of the table. Keys not
  already in the table are silently ignored.

  Args:
    table_handle: A `Tensor` of type `resource`. Handle to the table.
    keys: A `Tensor`. Any shape.  Keys of the elements to remove.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  ŚLookupTableRemoveV2Nr§   )r   r   r   )r   r   r   r   r   r   r   r    r!   r"   r#   Ś%lookup_table_remove_v2_eager_fallbackr%   r(   r)   )
r   r   r   r/   r0   r1   r2   r3   r4   r5   r8   r8   r9   Ślookup_table_remove_v2ŗ  s4   
’’’’žrķ   zraw_ops.LookupTableRemoveV2c                 C   sR   t  |g|g ”\}\}t | tj”} | |g}d|f}t jdd||||d}d }|S )NrĘ   s   LookupTableRemoveV2r   r=   r¬   )r   r   r   r   rĻ   r7   r6   r1   r8   r8   r9   rģ   ą  s   
’rģ   c           
      C   sr   t j pt  ” }|j}|jrtdtjd| |d\}}}}|dd }t ” r4d}|j	}	t 
d|	||” |\}|S )zęComputes the number of elements in the given table.

  Args:
    table_handle: A `Tensor` of type mutable `string`. Handle to the table.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `int64`.
  śSlookup_table_size op does not support eager execution. Arg 'table_handle' is a ref.ŚLookupTableSize©r   r   Nr8   )r   r   r   r   rj   r(   r)   r&   r*   r,   r-   )
r   r   r/   r0   r3   r4   r5   r1   r6   r7   r8   r8   r9   Ślookup_table_sizeė  s    
’’rń   zraw_ops.LookupTableSizec                 C   rp   )Nrī   rq   )r   r   r   r8   r8   r9   Ś lookup_table_size_eager_fallback  rt   rņ   c              
   C   sģ   t j pt  ” }|j}|jrNzt |d|| ”}|W S  tjy1 } zt 	||” W Y d}~nd}~w tj
y:   Y nw zt| ||dW S  tjyM   Y nw tjd| |d\}}}}|dd }t ” rqd}	|j}
t d|
|	|” |\}|S )ząComputes the number of elements in the given table.

  Args:
    table_handle: A `Tensor` of type `resource`. Handle to the table.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `int64`.
  ŚLookupTableSizeV2Nr§   rš   r8   )r   r   r   r   r   r   r   r    r!   r"   r#   Ś#lookup_table_size_v2_eager_fallbackr%   r(   r)   r&   r*   r,   r-   )r   r   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r8   r9   Ślookup_table_size_v2  sB   
’’’’’’rõ   zraw_ops.LookupTableSizeV2c                 C   sP   t  | tj”} | g}d }tjdd||||d}t ” r#t d|||” |\}|S )Ns   LookupTableSizeV2r<   r=   ró   )r!   r   r    r”   r&   r   r*   r-   )r   r   r   r7   r6   r1   r8   r8   r9   rō   4  s   
’’rō   Ś"TV_MutableDenseHashTable_key_dtypeŚ$TV_MutableDenseHashTable_value_dtypec	                 C   sl  t j pt  ” }	|	j}
|
jrtdt |d”}|du rd}t |d”}|du r)d}t |d”}|du r5d}t |d”}|du rAg }t 	|d	”}|du rMd
}t 
|d”}|du rYd}t |d”}tjd| ||||||||d
\}}}}|dd }t ” r±d| d”d| d”d| d”d| d”d| d”d	| d	”d| d”d| d”f}|j}t d|||” |\}|S )aó  Creates an empty hash table that uses tensors as the backing store.

  It uses "open addressing" with quadratic reprobing to resolve
  collisions.

  This op creates a mutable hash table, specifying the type of its keys and
  values. Each value must be a scalar. Data can be inserted into the table using
  the insert operations. It does not support the initialization operation.

  Args:
    empty_key: A `Tensor`.
      The key used to represent empty key buckets internally. Must not
      be used in insert or lookup operations.
    value_dtype: A `tf.DType`. Type of the table values.
    container: An optional `string`. Defaults to `""`.
      If non-empty, this table is placed in the given container.
      Otherwise, a default container is used.
    shared_name: An optional `string`. Defaults to `""`.
      If non-empty, this table is shared under the given name across
      multiple sessions.
    use_node_name_sharing: An optional `bool`. Defaults to `False`.
    value_shape: An optional `tf.TensorShape` or list of `ints`. Defaults to `[]`.
      The shape of each value.
    initial_num_buckets: An optional `int`. Defaults to `131072`.
      The initial number of hash table buckets. Must be a power
      to 2.
    max_load_factor: An optional `float`. Defaults to `0.8`.
      The maximum ratio between number of entries and number of
      buckets before growing the table. Must be between 0 and 1.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type mutable `string`.
  śZmutable_dense_hash_table op does not support eager execution. Arg 'table_handle' is a ref.r   Nra   rb   rc   Frd   rJ   rC   rG   rD   rH   ŚMutableDenseHashTable)	rE   r   rb   rc   rd   rJ   rG   rH   r   r   )r   r   r   r   rj   r&   r'   rk   rl   rL   rM   rN   r(   r)   r*   rO   rm   r+   rP   r,   r-   )rE   r   rb   rc   rd   rJ   rG   rH   r   r/   r0   r3   r4   r5   r1   r6   r7   r8   r8   r9   Śmutable_dense_hash_tableD  s`   #ś





ł’rś   zraw_ops.MutableDenseHashTablec
           
      C   rp   )Nrų   rq   )
rE   r   rb   rc   rd   rJ   rG   rH   r   r   r8   r8   r9   Ś'mutable_dense_hash_table_eager_fallback  rt   rū   Ś$TV_MutableDenseHashTableV2_key_dtypeŚ&TV_MutableDenseHashTableV2_value_dtypec
                 C   s  t j pt  ” }
|
j}|jrezt |
d|	| |d|d|d|d|d|d|d|”}|W S  tjy@ } zt 	||	” W Y d	}~nd	}~w tj
yI   Y nw zt| |||||||||	|
d
W S  tjyd   Y nw t |d”}|d	u rqd}t |d”}|d	u r}d}t |d”}|d	u rd}t |d”}|d	u rg }t |d”}|d	u r”d}t |d”}|d	u r­d}t |d”}tjd| |||||||||	d\}}}}|d	d	 }t ” rd| d”d| d”d| d”d| d”d| d”d| d”d| d”d| d”f}|j}t d|||” |\}|S )a2  Creates an empty hash table that uses tensors as the backing store.

  It uses "open addressing" with quadratic reprobing to resolve
  collisions.

  This op creates a mutable hash table, specifying the type of its keys and
  values. Each value must be a scalar. Data can be inserted into the table using
  the insert operations. It does not support the initialization operation.

  Args:
    empty_key: A `Tensor`.
      The key used to represent empty key buckets internally. Must not
      be used in insert or lookup operations.
    deleted_key: A `Tensor`. Must have the same type as `empty_key`.
    value_dtype: A `tf.DType`. Type of the table values.
    container: An optional `string`. Defaults to `""`.
      If non-empty, this table is placed in the given container.
      Otherwise, a default container is used.
    shared_name: An optional `string`. Defaults to `""`.
      If non-empty, this table is shared under the given name across
      multiple sessions.
    use_node_name_sharing: An optional `bool`. Defaults to `False`.
    value_shape: An optional `tf.TensorShape` or list of `ints`. Defaults to `[]`.
      The shape of each value.
    initial_num_buckets: An optional `int`. Defaults to `131072`.
      The initial number of hash table buckets. Must be a power
      to 2.
    max_load_factor: An optional `float`. Defaults to `0.8`.
      The maximum ratio between number of entries and number of
      buckets before growing the table. Must be between 0 and 1.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `resource`.
  ŚMutableDenseHashTableV2rb   rc   rd   r   rJ   rG   rH   N)	rb   rc   rd   r   rJ   rG   rH   r   r   ra   FrC   rD   )
rE   rF   r   rb   rc   rd   rJ   rG   rH   r   r   )r   r   r   r   r   r   r   r    r!   r"   r#   Ś*mutable_dense_hash_table_v2_eager_fallbackr%   r&   r'   rk   rl   rL   rM   rN   r(   r)   r*   rO   rm   r+   rP   r,   r-   )rE   rF   r   rb   rc   rd   rJ   rG   rH   r   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r8   r9   Śmutable_dense_hash_table_v2  s   $
ū’ś’÷







ł’r   zraw_ops.MutableDenseHashTableV2c                 C   s  t  |d”}|d u rd}t  |d”}|d u rd}t  |d”}|d u r$d}t  |d”}|d u r0g }t  |d”}|d u r<d}t  |d	”}|d u rHd
}t  |d”}t  | |g|
g ”\}}|\} }| |g}d|d|d|d|d|d|d	|d|f}t jdd|||
|	d}t  	” rt  
d|||” |\}|S )Nr   ra   rb   rc   Frd   rJ   rC   rG   rD   rH   r   s   MutableDenseHashTableV2r<   r=   rž   )r&   r'   rk   rl   rL   rM   rN   rR   r   r*   r-   )rE   rF   r   rb   rc   rd   rJ   rG   rH   r   r   rS   rT   r7   r6   r1   r8   r8   r9   r’     sL   
üž’r’   ŚTV_MutableHashTable_key_dtypeŚTV_MutableHashTable_value_dtypec                 C   re   )a»  Creates an empty hash table.

  This op creates a mutable hash table, specifying the type of its keys and
  values. Each value must be a scalar. Data can be inserted into the table using
  the insert operations. It does not support the initialization operation.

  Args:
    key_dtype: A `tf.DType`. Type of the table keys.
    value_dtype: A `tf.DType`. Type of the table values.
    container: An optional `string`. Defaults to `""`.
      If non-empty, this table is placed in the given container.
      Otherwise, a default container is used.
    shared_name: An optional `string`. Defaults to `""`.
      If non-empty, this table is shared under the given name across
      multiple sessions.
    use_node_name_sharing: An optional `bool`. Defaults to `False`.
      If true and shared_name is empty, the table is shared
      using the node name.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type mutable `string`.
  śTmutable_hash_table op does not support eager execution. Arg 'table_handle' is a ref.r   r   Nra   rb   rc   Frd   ŚMutableHashTablerh   ri   rn   r8   r8   r9   Śmutable_hash_table6  sF   ü


ü’r  zraw_ops.MutableHashTablec                 C   rp   )Nr  rq   rr   r8   r8   r9   Ś!mutable_hash_table_eager_fallbacks  rt   r  Ś&TV_MutableHashTableOfTensors_key_dtypeŚ(TV_MutableHashTableOfTensors_value_dtypec                 C   s0  t j pt  ” }|j}|jrtdt | d”} t |d”}|du r#d}t |d”}|du r/d}t |d”}|du r;d}t |d	”}|du rGg }t 	|d
”}t
jd| ||||||d\}	}	}
}|dd }t ” rd|
 d”d|
 d”d	|
 d	”d|
 d”d|
 d”d
|
 d
”f}|
j}t d|||” |\}|S )a·  Creates an empty hash table.

  This op creates a mutable hash table, specifying the type of its keys and
  values. Each value must be a vector. Data can be inserted into the table using
  the insert operations. It does not support the initialization operation.

  Args:
    key_dtype: A `tf.DType`. Type of the table keys.
    value_dtype: A `tf.DType`. Type of the table values.
    container: An optional `string`. Defaults to `""`.
      If non-empty, this table is placed in the given container.
      Otherwise, a default container is used.
    shared_name: An optional `string`. Defaults to `""`.
      If non-empty, this table is shared under the given name across
      multiple sessions.
    use_node_name_sharing: An optional `bool`. Defaults to `False`.
    value_shape: An optional `tf.TensorShape` or list of `ints`. Defaults to `[]`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type mutable `string`.
  ś_mutable_hash_table_of_tensors op does not support eager execution. Arg 'table_handle' is a ref.r   r   Nra   rb   rc   Frd   rJ   ŚMutableHashTableOfTensors©r   r   rb   rc   rd   rJ   r   )r   r   r   r   rj   r&   r'   rk   rl   rL   r(   r)   r*   rO   rm   r+   r,   r-   )r   r   rb   rc   rd   rJ   r   r/   r0   r3   r4   r5   r1   r6   r7   r8   r8   r9   Śmutable_hash_table_of_tensorsy  sR   ś



ū’r  z!raw_ops.MutableHashTableOfTensorsc                 C   rp   )Nr	  rq   )r   r   rb   rc   rd   rJ   r   r   r8   r8   r9   Ś,mutable_hash_table_of_tensors_eager_fallback»  rt   r  Ś(TV_MutableHashTableOfTensorsV2_key_dtypeŚ*TV_MutableHashTableOfTensorsV2_value_dtypec                 C   sŹ  t j pt  ” }|j}|jr^zt |d|d|d|d|d| d|d|”}	|	W S  tjy< }
 zt 	|
|” W Y d}
~
nd}
~
w tj
yE   Y nw zt|||| ||||d	W S  tjy]   Y nw t | d”} t |d”}|du rpd
}t |d”}|du r|d
}t |d”}|du rd}t |d”}|du rg }t |d”}tjd| ||||||d\}}}}|dd }	t ” rąd| d”d| d”d| d”d| d”d| d”d| d”f}|j}t d|||	” |	\}	|	S )a±  Creates an empty hash table.

  This op creates a mutable hash table, specifying the type of its keys and
  values. Each value must be a vector. Data can be inserted into the table using
  the insert operations. It does not support the initialization operation.

  Args:
    key_dtype: A `tf.DType`. Type of the table keys.
    value_dtype: A `tf.DType`. Type of the table values.
    container: An optional `string`. Defaults to `""`.
      If non-empty, this table is placed in the given container.
      Otherwise, a default container is used.
    shared_name: An optional `string`. Defaults to `""`.
      If non-empty, this table is shared under the given name across
      multiple sessions.
    use_node_name_sharing: An optional `bool`. Defaults to `False`.
    value_shape: An optional `tf.TensorShape` or list of `ints`. Defaults to `[]`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `resource`.
  ŚMutableHashTableOfTensorsV2rb   rc   rd   r   r   rJ   N)rb   rc   rd   r   r   rJ   r   r   ra   Fr  )r   r   r   r   r   r   r   r    r!   r"   r#   Ś/mutable_hash_table_of_tensors_v2_eager_fallbackr%   r&   r'   rk   rl   rL   r(   r)   r*   rO   rm   r+   r,   r-   )r   r   rb   rc   rd   rJ   r   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r8   r9   Ś mutable_hash_table_of_tensors_v2Į  s   
ü’ü’ś



ū’r  z#raw_ops.MutableHashTableOfTensorsV2c                 C   sŠ   t  | d”} t  |d”}|d u rd}t  |d”}|d u rd}t  |d”}|d u r*d}t  |d”}|d u r6g }t  |d”}g }d|d|d|d| d|d|f}	t jd	d
||	||d}
t  ” rct  d||	|
” |
\}
|
S )Nr   r   ra   rb   rc   Frd   rJ   s   MutableHashTableOfTensorsV2r<   r=   r  )r&   r'   rk   rl   rL   r   r*   r-   )r   r   rb   rc   rd   rJ   r   r   r7   r6   r1   r8   r8   r9   r    s:   žž’r  ŚTV_MutableHashTableV2_key_dtypeŚ!TV_MutableHashTableV2_value_dtypec                 C   rw   )aµ  Creates an empty hash table.

  This op creates a mutable hash table, specifying the type of its keys and
  values. Each value must be a scalar. Data can be inserted into the table using
  the insert operations. It does not support the initialization operation.

  Args:
    key_dtype: A `tf.DType`. Type of the table keys.
    value_dtype: A `tf.DType`. Type of the table values.
    container: An optional `string`. Defaults to `""`.
      If non-empty, this table is placed in the given container.
      Otherwise, a default container is used.
    shared_name: An optional `string`. Defaults to `""`.
      If non-empty, this table is shared under the given name across
      multiple sessions.
    use_node_name_sharing: An optional `bool`. Defaults to `False`.
      If true and shared_name is empty, the table is shared
      using the node name.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `resource`.
  ŚMutableHashTableV2rb   rc   rd   r   r   Nry   ra   Frh   )r   r   r   r   r   r   r   r    r!   r"   r#   Ś$mutable_hash_table_v2_eager_fallbackr%   r&   r'   rk   rl   r(   r)   r*   rO   rm   r+   r,   r-   r{   r8   r8   r9   Śmutable_hash_table_v25  sr   
ü’ż’ü


ü’r  zraw_ops.MutableHashTableV2c           
   
   C   r}   )Nr   r   ra   rb   rc   Frd   s   MutableHashTableV2r<   r=   r  r~   r   r8   r8   r9   r    r   r  )N)ra   ra   FN)r   r   r   N)ĄŚ__doc__ŚcollectionsZtensorflow.pythonr   Ztensorflow.python.eagerr   r   r   r   r   r&   Ztensorflow.python.frameworkr   r    Ztensorflow.security.fuzzing.pyr   Z_atypesr   Z_op_def_registryr	   r!   r
   r(   Z"tensorflow.python.util.deprecationr   Ztensorflow.python.utilr   Ś	_dispatchZ tensorflow.python.util.tf_exportr   Śtypingr   r   ZBFloat16ZBoolZ
Complex128Z	Complex64ZFloat16ZFloat32ZFloat64ZHalfZInt16ZInt32ZInt64ZInt8ZQInt16ZQInt32ZQInt8ZQUInt16ZQUInt8ŚResourceŚStringZUInt16ZUInt32ZUInt64ZUInt8ZVariantr   r   ZTensorFuzzingAnnotationr:   Z	to_raw_opr   r$   rA   rB   ŚintŚfloatrQ   rI   rK   rU   rV   rY   rW   rX   rZ   r[   r^   r\   r]   r_   r`   ŚstrŚboolro   rg   rs   ru   rv   r|   rx   rz   r   r   r   r   r   r   r   r   r   r   r   r£   r¤   rŖ   r¦   rØ   Ś
namedtuplerµ   rÆ   r°   r·   r®   rø   r¼   rŗ   r»   r¾   r¹   r½   rĄ   rĮ   rČ   rÄ   rÉ   rŹ   rĖ   rĪ   rĢ   rĶ   rŃ   rŅ   rÕ   rŌ   r×   rŲ   rŁ   rÜ   rŚ   rŪ   rß   rą   rć   rā   rä   rå   rę   ré   rē   rč   rź   rķ   rė   rģ   rń   rļ   rņ   rõ   ró   rō   rö   r÷   rś   rł   rū   rü   rż   r   rž   r’   r  r  r  r  r  r  r  r  r
  r  r  r  r  r  r  r  r  r  r  r  r8   r8   r8   r9   Ś<module>   s*   hh 5hh@Y6hh 6hh$>hh,9*hh,I*hh,*8968J6hh,"*žhh #žhh 1hh6$4hh604hh,*hh,$*hh,*hh,$*h"# $"$&"hhHR8hhRkBh&h,:*hh6?*hh6Q*hh,K.