contrib.lookup.HasherSpec

tf.contrib.lookup.HasherSpec

class tf.contrib.lookup.HasherSpec

Defined in tensorflow/contrib/lookup/lookup_ops.py.

A structure for the spec of the hashing function to use for hash buckets.

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.

Properties

hasher

Alias for field number 0

key

Alias for field number 1

Methods

__new__

__new__(
    _cls,
    hasher,
    key
)

Create new instance of HasherSpec(hasher, key)

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/lookup/HasherSpec

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部