Home
last modified time | relevance | path

Searched refs:hash_keys (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/contrib/layers/python/layers/
Dfeature_column.py565 hash_keys=None): argument
566 if hash_keys is not None:
567 if not isinstance(hash_keys, list) or not hash_keys:
569 if (any([not isinstance(key_pair, list) for key_pair in hash_keys]) or
570 any([len(key_pair) != 2 for key_pair in hash_keys]) or
571 any([not isinstance(key, int) for key in nest.flatten(hash_keys)])):
582 obj.hash_keys = hash_keys
591 if self.hash_keys:
593 for key in self.hash_keys:
612 hash_keys=None): argument
[all …]
Dfeature_column_test.py386 hash_keys = [[10, 20], [20, 30]]
388 column_name="ids", hash_bucket_size=10, hash_keys=hash_keys)
410 column_name="ids", hash_bucket_size=100, hash_keys=[])
415 column_name="ids", hash_bucket_size=100, hash_keys=1)
420 column_name="ids", hash_bucket_size=100, hash_keys=[1, 2])
425 column_name="ids", hash_bucket_size=100, hash_keys=["key"])
430 column_name="ids", hash_bucket_size=100, hash_keys=[[1, 2.0]])