Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove external calls to wheat #100

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/shark_turbine/aot/passes/functorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
# ONNX applies this post export, which suffers from the loss of output
# destructuring rewrites that torch.export does.
def functorch_functionalize(gm: GraphModule, *args) -> GraphModule:
functionalized_callable = _functionalize_callabale(gm)
functionalized_callable = _functionalize_callable(gm)
# TODO: There is more of a dance needed if the user has entered with a fake_mode.
with proxy_tensor.maybe_disable_fake_tensor_mode():
new_gm = proxy_tensor.make_fx(
Expand All @@ -55,7 +55,7 @@ def functorch_functionalize(gm: GraphModule, *args) -> GraphModule:
return new_gm


def _functionalize_callabale(function: Callable) -> Callable:
def _functionalize_callable(function: Callable) -> Callable:
def wrapped(*args):
args_functional = pytree.tree_map_only(
torch.Tensor, torch._to_functional_tensor, args
Expand Down
Loading