forked from tinygrad/tinygrad
bugfix: dtype mismatch in TestAssign.test_double_assign_alt [pr] (#8310)
This commit is contained in:
+2
-2
@@ -171,8 +171,8 @@ class TestAssign(unittest.TestCase):
|
||||
# NOTE: this is similar to the resnet failure
|
||||
#@unittest.expectedFailure
|
||||
def test_double_assign_alt(self):
|
||||
a = Tensor.ones(4).contiguous().realize()
|
||||
b = Tensor([1, 2, 3, 4]).realize().lazydata
|
||||
a = Tensor.ones(4, dtype=dtypes.int).contiguous().realize()
|
||||
b = Tensor([1, 2, 3, 4], dtype=dtypes.int).realize().lazydata
|
||||
a1 = a.lazydata.assign(b)
|
||||
a2 = a.lazydata.assign(b)
|
||||
sched = create_schedule([a1, a2])
|
||||
|
||||
Reference in New Issue
Block a user