Getting error during calculation of deviance information criterion(DIC)

While ececution of this line pm.dic(linear_trace,model=model)
i am getting this error AttributeError: module 'pymc3' has no attribute 'dic'

pymc3 version : 3.9.3

DIC has been removed due to its limitations within the Bayesian framework as described

I’d suggest you use az.loo or az.waic instead. They can also be called as pm.loo/waic which are aliases to the ArviZ functions mentioned previously.