tf.contrib.lookup.HasherSpec
Stay organized with collections
Save and categorize content based on your preferences.
A structure for the spec of the hashing function to use for hash buckets.
tf.contrib.lookup.HasherSpec(
hasher, key
)
hasher
is the name of the hashing function to use (eg. "fasthash",
"stronghash").
key
is optional and specify the key to use for the hash function if
supported, currently only used by a strong hash.
Fields:
hasher
: The hasher name to use.
key
: The key to be used by the hashing function, if required.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.contrib.lookup.HasherSpec\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/lookup_ops.py#L782-L794) |\n\nA structure for the spec of the hashing function to use for hash buckets. \n\n tf.contrib.lookup.HasherSpec(\n hasher, key\n )\n\n`hasher` is the name of the hashing function to use (eg. \"fasthash\",\n\"stronghash\").\n`key` is optional and specify the key to use for the hash function if\nsupported, currently only used by a strong hash.\n\n#### Fields:\n\n- **`hasher`**: The hasher name to use.\n- **`key`**: The key to be used by the hashing function, if required.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|----------|---------------|\n| `hasher` | \u003cbr /\u003e \u003cbr /\u003e |\n| `key` | \u003cbr /\u003e \u003cbr /\u003e |\n\n\u003cbr /\u003e"]]