Last active
November 21, 2021 20:59
-
-
Save ckrapu/aa805de4afd23bc302c89a59f2f5382f to your computer and use it in GitHub Desktop.
PyMC3 GPU test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
os.environ['THEANO_FLAGS'] = 'device=cuda,floatX=float64' | |
import pymc3 as pm | |
with pm.Model(): | |
x = pm.Normal('x', shape=1000) | |
trace = pm.sample(chains=1, cores=1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment