Tensor don't have 'place' interface in static graph mode But this interface can greatly facilitate dy2static. So we give a warning here and return None.
(self)
| 253 | |
| 254 | @property |
| 255 | def place(self): |
| 256 | """ |
| 257 | Tensor don't have 'place' interface in static graph mode |
| 258 | But this interface can greatly facilitate dy2static. |
| 259 | So we give a warning here and return None. |
| 260 | """ |
| 261 | warnings.warn( |
| 262 | "Tensor do not have 'place' interface for pir graph mode, try not to use it. None will be returned." |
| 263 | ) |
| 264 | |
| 265 | @property |
| 266 | def device(self): |
no test coverage detected