Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
chengmengli06 committed Feb 27, 2024
1 parent 2955315 commit bb5e69e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion easy_rec/python/compat/feature_column/feature_column.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,8 @@ def _get_var_type(column):
if embedding_utils.is_embedding_parallel():
return _get_logits_embedding_parallel()
else:
with conditional(embedding_utils.embedding_on_cpu(), '/cpu:0'):
with conditional(embedding_utils.embedding_on_cpu(),
ops.device('/cpu:0')):
return _get_logits()


Expand Down

0 comments on commit bb5e69e

Please sign in to comment.