def reset(): """Resets Taichi to its initial state. This would destroy all the fields and kernels. """ impl.reset() global runtime runtime = impl.get_runtime()
def reset(): """Resets Taichi to its initial state. This would destroy all the fields and kernels. """ _ti_core.reset_snode_access_flag() impl.reset() global runtime runtime = impl.get_runtime()
def reset(): """Resets Taichi to its initial state. This will destroy all the allocated fields and kernels, and restore the runtime to its default configuration. Example:: >>> a = ti.field(ti.i32, shape=()) >>> a[None] = 1 >>> print("before reset: ", a) before rest: 1 >>> >>> ti.reset() >>> print("after reset: ", a) # will raise error because a is unavailable after reset. """ impl.reset() global runtime runtime = impl.get_runtime()
def reset(): impl.reset() global runtime runtime = impl.get_runtime()
def reset(): _ti_core.reset_snode_access_flag() impl.reset() global runtime runtime = impl.get_runtime()