Skip to content

Commit

Permalink
feat: Add frontend for torch.jit.is_scripting
Browse files Browse the repository at this point in the history
  • Loading branch information
hmahmood24 committed Sep 13, 2024
1 parent c9ad12b commit 734780e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ivy/functional/frontends/torch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ def promote_types_of_torch_inputs(
from . import special
from . import tensor
from . import _VF
from . import jit
from . import overrides
from . import _C
from .tensor import *
Expand Down
2 changes: 2 additions & 0 deletions ivy/functional/frontends/torch/_jit_internal.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def is_scripting():
return False
1 change: 1 addition & 0 deletions ivy/functional/frontends/torch/jit/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from ivy.functional.frontends.torch._jit_internal import is_scripting

0 comments on commit 734780e

Please sign in to comment.