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
Stuck at learning_process.initialize() in DP Tutorial #3756
Comments
Is this a duplicate of #3742? Please try the new |
Sorry |
To clarify - You can execute code, but the |
Sure, it was the case. At least three to four hours, and then I lost patience with that. I have tried three times, each of which hung in the same place and no error message was prompted so I could not provide more information. |
@SamuelGong I think that if you remove the call to |
It works for me! Thank you very much. |
Since I can now run the tutorial notebook on my local machine, I have access to the jupyter notebook's log. Inspecting on the log, I found that when calling the function |
I think that |
@SamuelGong I stuck with the same hang issue when i execute state = learning_process.initialize() even i removed tff.backends.native.set_sync_local_cpp_execution_context Can you please help? how this can be solved |
Hi. For me, previously it was solved by removing the line. However, as TFF is undergoing rapid version change, it may not work now. If not, maybe you should resort to the team. |
I'm facing the same issue when I use tensoflow federated in google colab. When I try to run tff.federated_computation(lambda: 'Hello, World!')(), this command is also hanging. The same happens with .initialize() function when i try to start training my model using tff.learning.algorithms.build_weighted_fed_avg. Has anyone faced this issue recently? |
@niharikagupta2021 I would encourage you to open a separate github issue for this. Please make sure to include the suggested details - things like version, operating system, etc. are critical to debugging this kind of thing. |
Describe the bug
In the colab notebook for DP, everything went well until I reached the code block where the program kept running for hours but prompting no log. Further debugging shows that the program never finished executing the line
state = learning_process.initialize()
.Environment:
The experiment is conducted from scratch using today's TFF (0.51.0). No modification has been made to any part of the notebook.
Expected behavior
The execution of the mentioned line should be able to complete, in an acceptable time like at most minutes.
The text was updated successfully, but these errors were encountered: