(self)
| 164 | return int(self.data) |
| 165 | |
| 166 | def __float__(self): |
| 167 | if isinstance(self.data, torch.SymFloat): |
| 168 | raise ExportPassBaseError( |
| 169 | "ProxyValue with SymFloat data cannot be converted to float." |
| 170 | ) |
| 171 | return float(self.data) |
| 172 | |
| 173 | def __index__(self): |
| 174 | if isinstance(self.data, torch.SymInt): |
nothing calls this directly
no test coverage detected