hotfix: remove double assignment (#4340)

This commit is contained in:
qazal 2024-04-28 20:41:31 +03:00 committed by GitHub
parent 23445db2b9
commit e027879475
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ class Linearizer(Kernel):
idx, valid = self.sts[i].expr_idxs(_idx)
if isinstance(buf.dtype, ImageDType):
image_idx, valid = to_image_idx(buf.dtype.shape, idx, valid)
rendered_idx = rendered_idx = self.uops.add(UOps.CAST, dtypes.int.vec(2), \
rendered_idx = self.uops.add(UOps.CAST, dtypes.int.vec(2), \
tuple(x.render(self.render_ops, self) for x in image_idx), insert_before=insert_before)
else:
rendered_idx = idx.render(self.render_ops, self)