提交 ed759a09 authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Brandon T. Willard

Make ScalarConstant a subclass of ScalarVariable

上级 14705dbf
......@@ -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
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论