Skip to content

Commit

Permalink
Make ScalarConstant a subclass of ScalarVariable
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonwillard committed Nov 26, 2021
1 parent 14705db commit ed759a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aesara/scalar/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,8 +865,9 @@ class ScalarVariable(_scalar_py_operators, Variable):
pass


class ScalarConstant(_scalar_py_operators, Constant):
pass
class ScalarConstant(ScalarVariable, Constant):
def __init__(self, *args, **kwargs):
Constant.__init__(self, *args, **kwargs)


# Register ScalarConstant as the type of Constant corresponding to Scalar
Expand Down

0 comments on commit ed759a0

Please sign in to comment.