Skip to content

Commit 00ec129

Browse files
Give the featureConfig a name.
PiperOrigin-RevId: 567724568
1 parent a44092b commit 00ec129

File tree

1 file changed

+4
-1
lines changed
  • official/recommendation/ranking

1 file changed

+4
-1
lines changed

official/recommendation/ranking/task.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ def _get_tpu_embedding_feature_config(
7070
mean=0.0, stddev=1 / math.sqrt(embedding_dim[i])),
7171
name=table_name_prefix + '_%02d' % i)
7272
feature_config[str(i)] = tf.tpu.experimental.embedding.FeatureConfig(
73-
table=table_config, output_shape=[batch_size] if batch_size else None)
73+
name=str(i),
74+
table=table_config,
75+
output_shape=[batch_size] if batch_size else None,
76+
)
7477

7578
return feature_config
7679

0 commit comments

Comments
 (0)