Skip to content

Commit

Permalink
feat: Add clear_graph_cache function to ivy
Browse files Browse the repository at this point in the history
  • Loading branch information
hmahmood24 committed Jul 31, 2024
1 parent 6103241 commit d878ed1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ivy/compiler/compiler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
from typing import Callable, Optional, List, Union, Iterable, Sequence, Mapping


def clear_graph_cache():
"""Clears the graph cache which gets populated if `graph_caching` is set
to `True` in `ivy.trace_graph`, `ivy.transpile` or `ivy.unify`. Use this to
reset or clear the graph cache if needed.
"""
from ._compiler import clear_graph_cache as _clear_graph_cache

_clear_graph_cache()


def source_to_source(
object,
source: str = "torch",
Expand Down

0 comments on commit d878ed1

Please sign in to comment.