MCPcopy Create free account
hub / github.com/dask/dask / get_output_keys

Method get_output_keys

dask/blockwise.py:627–638  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

625 return self._cached_dict["dsk"]
626
627 def get_output_keys(self):
628 if self.output_blocks:
629 # Culling has already generated a list of output blocks
630 return {(self.output, *p) for p in self.output_blocks}
631
632 # Return all possible output keys (no culling)
633 return {
634 (self.output, *p)
635 for p in itertools.product(
636 *[range(self.dims[i]) for i in self.output_indices]
637 )
638 }
639
640 def __getitem__(self, key):
641 return self._dict[key]

Callers 5

cloneMethod · 0.95
_checkpoint_oneFunction · 0.45
_bind_oneFunction · 0.45
test_blockwise_cullFunction · 0.45

Calls 1

productMethod · 0.80

Tested by 2

test_blockwise_cullFunction · 0.36