Replies: 1 comment 1 reply
-
About types, this might be relevant: aesara-devs/aesara#1207 And the associated issue (and its "off-topic" comments): aesara-devs/aesara#134 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The
make_node
in the base Op class is meant to deal with class Variable which in turn has a base Type class. In a number of places we violate the principle of common interface for this type structure.pytensor/pytensor/tensor/random/basic.py
Line 1914 in d798553
dtype: str
later on every sublcass picks up this dtype, compares to numpy dtype and creates an attribute with numpy_dtype (there are just three places HasDType is Inherited)pytensor/pytensor/scalar/basic.py
Line 272 in d798553
pytensor/pytensor/tensor/type.py
Line 58 in d798553
pytensor/pytensor/sparse/type.py
Line 36 in d798553
pytensor/pytensor/scalar/basic.py
Line 373 in d798553
pytensor/pytensor/tensor/type.py
Line 279 in d798553
pytensor/pytensor/tensor/type.py
Line 40 in d798553
pytensor/pytensor/sparse/type.py
Line 51 in d798553
issubclass(ScalarType, TensorType) is False
, but in fact, TensorType is a superset of the TensorTypeHasShape
typed classes are valid for taking shape, isn't it?Beta Was this translation helpful? Give feedback.
All reactions