diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-29 14:55:22 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-29 14:55:22 +0000 |
commit | 4c51ef39a9b443061a7071e002d7daa2a4d16141 (patch) | |
tree | 048b88a0effe40564f62448a2ff2779f637e563f /dev-python/aesara/files | |
parent | cd1445321d1a6609cc7215588a79b2232c8a9bd3 (diff) |
gentoo auto-resync : 29:01:2023 - 14:55:22
Diffstat (limited to 'dev-python/aesara/files')
-rw-r--r-- | dev-python/aesara/files/aesara-2.8.10-fix-tuple.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-python/aesara/files/aesara-2.8.10-fix-tuple.patch b/dev-python/aesara/files/aesara-2.8.10-fix-tuple.patch new file mode 100644 index 000000000000..7eb537d54286 --- /dev/null +++ b/dev-python/aesara/files/aesara-2.8.10-fix-tuple.patch @@ -0,0 +1,19 @@ +diff --git a/aesara/tensor/nnet/corr.py b/aesara/tensor/nnet/corr.py +index e89054d..77ed344 100644 +--- a/aesara/tensor/nnet/corr.py ++++ b/aesara/tensor/nnet/corr.py +@@ -692,12 +692,12 @@ class CorrMM(BaseCorrMM): + if kern.type.ndim != 4: + raise TypeError("kern must be 4D tensor") + +- out_shape = tuple( ++ out_shape = tuple([ + 1 if img.type.shape[0] == 1 else None, + 1 if kern.type.shape[0] == 1 else None, + None, + None, +- ) ++ ]) + dtype = img.type.dtype + return Apply(self, [img, kern], [TensorType(dtype, shape=out_shape)()]) + |