(self, device, to_device, inp)
| 715 | return (inp + 1.0).contiguous().realize() |
| 716 | |
| 717 | def copy(self, device, to_device, inp): |
| 718 | assert inp.device == device, f"Input device {inp.device} does not match expected {device}" |
| 719 | return inp.to(to_device).realize() |
| 720 | |
| 721 | def expect(self, f, *args, graph=None, multigraph=None, hcqgraph=None): |
| 722 | def _numpies(tpl): return tpl.numpy() if tpl.__class__ is Tensor else tuple([t.numpy() for t in tpl]) |
no test coverage detected