(self)
| 654 | |
| 655 | @property |
| 656 | def device(self): |
| 657 | # Hack so we can track when devices are used. During meta-tensor propagation, |
| 658 | # replace these values with a constant 'meta' |
| 659 | return MetaDeviceAttribute(self, "device") |
| 660 | |
| 661 | def __len__(self): |
| 662 | if hasattr(self, "_metadata") and self._metadata is not None: |