Exemple #1
0
def dump_dot(filepath=None, rankdir=None):
    from taichi.core import ti_core
    d = ti_core.dump_dot(rankdir)
    if filepath is not None:
        with open(filepath, 'w') as fh:
            fh.write(d)
    return d
Exemple #2
0
def dump_dot(filepath=None, rankdir=None, embed_states_threshold=0):
    from taichi.core import ti_core
    d = ti_core.dump_dot(rankdir, embed_states_threshold)
    if filepath is not None:
        with open(filepath, 'w') as fh:
            fh.write(d)
    return d