import numpy as np
import theano.tensor as tt
import pymc3 as pm
WARNING (theano.gof.compilelock): Overriding existing lock by dead process '24325' (I am process '1577')
with pm.Model() as model:
β = pm.Normal('β', 0.5, sd=1000, shape=2)
# Initialize a tensor of zeros, and replace all but one with the variables
betas = tt.set_subtensor(tt.zeros(shape=3)[1:], β)
betas.tag.test_value
array([ 0. , 0.5, 0.5])