File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1364,8 +1364,10 @@ def _get_nbytes(self, i):
1364
1364
try :
1365
1365
# Non-regular AbstractFunction (compressed, etc)
1366
1366
nbytes = obj .nbytes_max
1367
- except AttributeError :
1368
- # Garden-variety AbstractFunction
1367
+ except (AttributeError , ValueError ):
1368
+ # Either garden-variety AbstractFunction, or uninitialised
1369
+ # function used in estimate. In the latter case, fall back
1370
+ # to nbytes, as it is typically zero
1369
1371
nbytes = obj .nbytes
1370
1372
1371
1373
# Could nominally have symbolic nbytes at this point
@@ -1461,7 +1463,8 @@ def nbytes_consumed_arrays(self):
1461
1463
# Temporaries such as Arrays are allocated and deallocated on-the-fly
1462
1464
# while in C land, so they need to be accounted for as well
1463
1465
for i in self ._op_symbols :
1464
- if not i .is_Array or not i ._mem_heap or i .alias :
1466
+ if not i .is_Array or not i ._mem_heap or i .alias \
1467
+ or not i .is_regular :
1465
1468
continue
1466
1469
1467
1470
if i .is_regular :
You can’t perform that action at this time.
0 commit comments