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 doc build by removing tensorflow dependency #2610

Merged
merged 3 commits into from
Dec 3, 2019
Merged

Conversation

Strilanc
Copy link
Contributor

@Strilanc Strilanc commented Dec 2, 2019

Currently the doc builds are failing due to running out of memory when pip installing tensorflow.
I investigated fixing this problem by upgrading to the paid version of readthedocs, and found out that:

  1. They do not have a way to just turn your free project into a paid project. You need to configure a new project.
  2. Paid projects have less (LESS!) control over the domain name than the free projects (the URL would be prefixed with "quantum-lib-", also the top-level domain would differ; I strongly suspect we would not be able to use a custom domain that was not owned by us such as the existing docs location).
  3. The support staff does not think that this is a situation that needs to be fixed.

So as a fix I'm killing off the TPU translation code from contrib and removing the tensorflow dependency.
I will also look into using other documentation services.

The tpu code is in contrib, so it does not need to be deprecated. The tpu code was still slower than non-tpu simulation due to the large compile times.

As a side benefit, this will likely speed up our builds.

Currently the doc builds are failing due to running out of memory when pip installing tensorflow.
I investigated fixing this problem by upgrading to the paid version of readthedocs, and found out that:

1. They do not have a way to just turn your free project into a paid project. You need to configure a new project.
2. Paid projects have *less* (**LESS!**) control over the domain name than the free projects (the URL would be prefixed with "quantum-lib-", also the top-level domain would differ).
3. The support staff does not think that this is a situation that needs to be fixed.

So as a fix I'm killing off the TPU translation code from contrib and removing the tensorflow dependency.
I will also look into using other documentation services.
@googlebot googlebot added the cla: yes Makes googlebot stop complaining. label Dec 2, 2019
Copy link
Collaborator

@MichaelBroughton MichaelBroughton left a comment

Choose a reason for hiding this comment

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

Ironically the docs are still failing. Once that's fixed, this looks good to me :)

@Strilanc Strilanc added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Dec 3, 2019
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Dec 3, 2019
@CirqBot CirqBot merged commit 31b5436 into master Dec 3, 2019
@CirqBot CirqBot removed the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Dec 3, 2019
@CirqBot CirqBot deleted the remove_tensorflow branch December 3, 2019 00:31
@CirqBot CirqBot removed the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Dec 3, 2019
Strilanc added a commit that referenced this pull request Dec 3, 2019
Strilanc added a commit that referenced this pull request Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants