recommenders-addons icon indicating copy to clipboard operation
recommenders-addons copied to clipboard

fix: Do not reuse variable in python to avoid confict of multiple var…

Open Lifann opened this issue 2 years ago • 0 comments

…iables with different properties

Description

Brief Description of the PR: When multiple variable share same name with different properties in graph mode, reusing Variable in python makes only the first one works.

Fixes # (issue)

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?

If you're adding a bugfix or new feature please describe the tests that you ran to verify your changes: *

Lifann avatar Jul 28 '23 07:07 Lifann