Skip to content

Use theano.tensor.switch instead of pm.switch #325

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
Oct 18, 2016
Merged

Use theano.tensor.switch instead of pm.switch #325

merged 1 commit into from
Oct 18, 2016

Conversation

sebp
Copy link
Contributor

@sebp sebp commented Oct 16, 2016

pm.switch does not exist and is replaced by theano.tensor.switch (same as pm.math.switch) in PyMC3.

Chapter 1 already uses theano's switch.

@twiecki
Copy link
Contributor

twiecki commented Oct 17, 2016

Actually these just moved to pymc3.math, can you import switch from there instead?

pm.switch does not exist and is replaced by theano.tensor.switch (same
as pm.math.switch) in PyMC3.
@sebp
Copy link
Contributor Author

sebp commented Oct 18, 2016

@twiecki pymc3.math.switch is used in chapters 1 and 2 now.

@twiecki
Copy link
Contributor

twiecki commented Oct 18, 2016

Cool, LGTM. CC @CamDavidsonPilon

@CamDavidsonPilon CamDavidsonPilon merged commit 0413e0f into CamDavidsonPilon:master Oct 18, 2016
@CamDavidsonPilon
Copy link
Owner

👍 thanks for the contribution!

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