We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ad1d4f4 + 8c55f19 commit 4c654ffCopy full SHA for 4c654ff
devito/operator/operator.py
@@ -1511,13 +1511,13 @@ def nbytes_consumed_memmapped(self):
1511
1512
@cached_property
1513
def nbytes_snapshots(self):
1514
- # Filter to streamed functions
1515
disk = 0
+ # Layers are sometimes aliases, so include aliases here
1516
for i in self._op_symbols:
1517
try:
1518
- if i._child not in self._op_symbols:
+ if i._child is None:
1519
# Use only the "innermost" layer to avoid counting snapshots
1520
- # twice
+ # twice. This layer will have no child.
1521
v = self._apply_override(i)
1522
disk += v.size_snapshot*v._time_size_ideal*np.dtype(v.dtype).itemsize
1523
except AttributeError:
0 commit comments