def deactivate_all(self): """Same as :func:`taichi.lang.snode.SNode.deactivate_all`""" if self._finalized: self._root.deactivate_all() else: warning( """'deactivate_all()' would do nothing if FieldsBuilder is not finalized""" )
def _finalize(self, raise_warning, compile_only): self._check_not_finalized() if self._empty and raise_warning: warning("Finalizing an empty FieldsBuilder!") self._finalized = True return SNodeTree( _ti_core.finalize_snode_tree(_snode_registry, self._ptr, impl.get_runtime().prog, compile_only))
def __init__(self): warning( 'ti.linalg.sparse_matrix_builder is deprecated. Please use ti.types.sparse_matrix_builder instead.', DeprecationWarning)
def deactivate_all(): warning( """'ti.root.deactivate_all()' would deactivate all finalized snodes.""" ) deactivate_all_snodes()