diff --git a/pymc3/step_methods/gibbs.py b/pymc3/step_methods/gibbs.py
index <HASH>..<HASH> 100644
--- a/pymc3/step_methods/gibbs.py
+++ b/pymc3/step_methods/gibbs.py
@@ -19,6 +19,9 @@ Created on May 12, 2012
 """
 from warnings import warn
 
+import aesara.tensor as aet
+
+from aesara.graph.basic import graph_inputs
 from numpy import arange, array, cumsum, empty, exp, max, nested_iters, searchsorted
 from numpy.random import uniform
 
@@ -78,7 +81,7 @@ def elemwise_logp(model, var):
         v_logp = logpt(v)
         if var in graph_inputs([v_logp]):
             terms.append(v_logp)
-    return model.fn(add(*terms))
+    return model.fn(aet.add(*terms))
 
 
 def categorical(prob, shape):
Add missing imports to pymc3.step_methods.gibbs