2D field 的 struct for 循环中的continue

import taichi as ti
ti.init(arch=ti.gpu)
img = ti.field( ti.i32, (2,2))
@ti.kernel
def K():
    for i,j in img:
        img[i,j] = 0
        if  i> 0  or j> 0:continue
        img[i,j] = 1

    for i,j in img:
        print(i,j,img[i,j])

img.fill(2)
K()

它的输出如下

img[i,j] = 0 这句就像没有作用一样
或者是continue不能这样用?

应该是CUDA的continue实现有点问题,我看ti.init(arch=ti.cpu)是正常的,我提了一个Issue追踪这个问题:[Bug] ContinueStmt failed to trigger on CUDA backend · Issue #8057 · taichi-dev/taichi · GitHub