def test_cpow(self): self._test_cop(torch.pow, lambda x, y: float('nan') if x < 0 else math.pow(x, y)) # TODO: these tests only check if it's possible to pass a return value # it'd be good to expand them