(self)
| 644 | return iter(self._dict) |
| 645 | |
| 646 | def __len__(self) -> int: |
| 647 | # same method as `get_output_keys`, without manifesting the keys themselves |
| 648 | return ( |
| 649 | len(self.output_blocks) |
| 650 | if self.output_blocks |
| 651 | else prod(self.dims[i] for i in self.output_indices) |
| 652 | ) |
| 653 | |
| 654 | def is_materialized(self): |
| 655 | return hasattr(self, "_cached_dict") |