Skip to content

Remove awkward from theano import theano statements #4054

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

Merged
merged 1 commit into from
Aug 16, 2020

Conversation

brandonwillard
Copy link
Contributor

This PR removes the use of Theano import statements like from theano import theano. This awkward type of import is only possible because the theano module holds a reference to itself (for some unknown reason). Furthermore, these imports break PyMC3 when used with our Theano fork, because the fork doesn't introduce this anomalous circular reference.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

Review Jupyter notebook visual diffs & provide feedback on notebooks.


Powered by ReviewNB

@codecov
Copy link

codecov bot commented Aug 15, 2020

Codecov Report

Merging #4054 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4054   +/-   ##
=======================================
  Coverage   86.82%   86.82%           
=======================================
  Files          88       88           
  Lines       14154    14156    +2     
=======================================
+ Hits        12289    12291    +2     
  Misses       1865     1865           
Impacted Files Coverage Δ
pymc3/model.py 88.95% <100.00%> (+0.01%) ⬆️
pymc3/theanof.py 90.00% <100.00%> (ø)
pymc3/variational/stein.py 100.00% <100.00%> (ø)

Copy link
Member

@junpenglao junpenglao left a comment

Choose a reason for hiding this comment

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

Thanks!

@ericmjl
Copy link
Member

ericmjl commented Aug 16, 2020

I was working with @brandonwillard yesterday afternoon when trying to fix this, and I think it's good to merge.

@ericmjl ericmjl merged commit aaafa8d into pymc-devs:master Aug 16, 2020
@brandonwillard brandonwillard deleted the adjust-theano-imports branch August 17, 2020 14:42
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.

3 participants