Skip to content

Commit b62d02e

Browse files
authored
Use string_to_hash_bucket_fast in feature_column
Updated feature_column to use string_to_hash_bucket_fast instead of deprecated string_to_hash_bucket.
1 parent 384fed7 commit b62d02e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow/contrib/layers/python/layers/feature_column.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def __new__(cls, column_name, hash_bucket_size, combiner="sum"):
344344

345345
def insert_transformed_feature(self, columns_to_tensors):
346346
"""Handles sparse column to id conversion."""
347-
sparse_id_values = string_ops.string_to_hash_bucket(
347+
sparse_id_values = string_ops.string_to_hash_bucket_fast(
348348
columns_to_tensors[self.name].values,
349349
self.bucket_size,
350350
name=self.name + "_lookup")

0 commit comments

Comments
 (0)