Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] fix device of table shard was lost in savedmodel pb file when save model with keras api. #283

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

MoFHeka
Copy link
Contributor

@MoFHeka MoFHeka commented Oct 31, 2022

Description

Fix device of table shard was lost in savedmodel pb file when save model with keras api. When use keras model saving, there is no device property in TFRA table resource node. So that, it would cause problem in serving scenes when load model with TF C++ api. That is when user want a CPU table but it was treated to a GPU table without enough device memory.

Type of change

  • Bug fix
  • New Tutorial
  • Updated or additional documentation
  • Additional Testing
  • New Feature

Checklist:

  • I've properly formatted my code according to the guidelines
    • By running yapf
    • By running clang-format
  • This PR addresses an already submitted issue for TensorFlow Recommenders-Addons
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

How Has This Been Tested?

In file 'tensorflow_recommenders_addons/dynamic_embedding/python/keras/layers/embedding_test.py', a new test function
'test_keras_save_load_weights'.

@MoFHeka MoFHeka requested a review from rhdong as a code owner October 31, 2022 08:42
Copy link
Member

@rhdong rhdong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@rhdong rhdong merged commit 03d37ae into tensorflow:master Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants