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] embedding variable is_initialized not executed in graph mode #130

Merged
merged 1 commit into from
Aug 6, 2021

Conversation

qqsun8819
Copy link
Contributor

@qqsun8819 qqsun8819 commented Aug 5, 2021

In graph mode, report_uninitialized_variables use state_ops.is_variable_initialized to compose is_initialized_op, for ResourceVariable, this method will call BsaeResourceVariable.is_initialized method to insert this op into graph.
EmbeddingVariable should override this method so that ev_is_initailed_op can be composed into report_uninitialized_variables.

@qqsun8819 qqsun8819 changed the title [fix] embedding varialbe is_initialized not build into graph in graph mode [fix] embedding varialbe is_initialized not executed in graph mode Aug 5, 2021
in graph mode, report_uninitialized_variables use state_ops.is_variable_initialized to compose is_initialized_op,
for ResourceVariable, this method will call BsaeResourceVariable.is_initialized method to insert this op into graph.
EmbeddingVariable should override this method so that ev_is_initailed_op can be composed into report_uninitialized_variables.
@qqsun8819 qqsun8819 changed the title [fix] embedding varialbe is_initialized not executed in graph mode [fix] embedding variable is_initialized not executed in graph mode Aug 6, 2021
@liutongxuan liutongxuan merged commit f74a08a into tensorflow:master Aug 6, 2021
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