Triggers the computation needed to create these Tensor(s).
(self, *lst:Tensor, do_update_stats=True)
| 239 | |
| 240 | @disable_gc() |
| 241 | def realize(self, *lst:Tensor, do_update_stats=True) -> Tensor: |
| 242 | """Triggers the computation needed to create these Tensor(s).""" |
| 243 | if len(to_realize:=[x for x in (self,)+lst if x.uop.device is not None and not x.uop.has_buffer_identity()]): |
| 244 | run_linear(*Tensor.linear_with_vars(*to_realize), update_stats=do_update_stats) |
| 245 | return self |
| 246 | |
| 247 | def replace(self, x:Tensor) -> Tensor: |
| 248 | """ |