tensorflow / 2.9.1 / raw_ops / anonymousmutablehashtable.html /

tf.raw_ops.AnonymousMutableHashTable

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.

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/raw_ops/AnonymousMutableHashTable