# tf.contrib.lookup.HasherSpec

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/lookup_ops.py#L782-L794) |

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.

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `hasher` | <br /> <br /> |
| `key` | <br /> <br /> |

<br />