From ed759a0954ed980af3cb2198c0783427529abe12 Mon Sep 17 00:00:00 2001 From: "Brandon T. Willard" Date: Thu, 25 Nov 2021 15:13:05 -0600 Subject: [PATCH] Make ScalarConstant a subclass of ScalarVariable --- aesara/scalar/basic.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aesara/scalar/basic.py b/aesara/scalar/basic.py index 30ec99c2e3..cdea769aa2 100644 --- a/aesara/scalar/basic.py +++ b/aesara/scalar/basic.py @@ -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