[CODEGEN] Various bugfixes and stability improvements in compiler backend (#240)

This commit is contained in:
Philippe Tillet
2021-08-30 11:50:35 -07:00
committed by GitHub
parent 85426dbaf7
commit 4ff3714d61
25 changed files with 568 additions and 399 deletions

View File

@@ -87,6 +87,7 @@ def assert_allclose(x, y, tol=1e-2):
def random(shape, dtype, device):
torch.manual_seed(0)
if isinstance(shape, int):
shape = (shape, )
if dtype == torch.bool: