(self)
| 150 | yield from self.data |
| 151 | |
| 152 | def __bool__(self) -> bool: |
| 153 | if isinstance(self.data, (torch.SymInt, torch.SymFloat, torch.SymBool)): |
| 154 | raise ExportPassBaseError( |
| 155 | "ProxyValue with symbolic data cannot be used in boolean context." |
| 156 | ) |
| 157 | return bool(self.data) |
| 158 | |
| 159 | def __int__(self): |
| 160 | if isinstance(self.data, torch.SymInt): |
nothing calls this directly
no test coverage detected