Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Theano (aesara) doesn't have theano.gof anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanYashchuk committed Feb 28, 2021
1 parent efa73ea commit 3f165ef
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions fenics_pymc3/core.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
import theano
from theano.gof import Op, Apply

try:
from theano.graph.op import Op, Apply, type
except ModuleNotFoundError:
# older version of theano
from theano.gof import Op, Apply, type


import functools

from fecr import evaluate_primal, evaluate_pullback


class FenicsVJPOp(Op):
params_type = theano.gof.type.Generic()
params_type = type.Generic()
__props__ = ("ofunc", "templates", "fenics_output", "fenics_inputs", "tape")

def __init__(self, ofunc, templates, fenics_output, fenics_inputs, tape):
Expand Down

0 comments on commit 3f165ef

Please sign in to comment.