Skip to content

Commit

Permalink
fix typo in code
Browse files Browse the repository at this point in the history
  • Loading branch information
youkaichao committed Sep 7, 2024
1 parent 9606941 commit bad9a0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion depyf/optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import torch


class TorchCompileWrapperWithCustomDispacther:
class TorchCompileWrapperWithCustomDispatcher:

Check warning on line 11 in depyf/optimization.py

View check run for this annotation

Codecov / codecov/patch

depyf/optimization.py#L11

Added line #L11 was not covered by tests
"""
A wrapper class for torch.compile, with a custom dispatch logic.
Subclasses should:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_pytorch/test_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import torch

from depyf.optimization import TorchCompileWrapperWithCustomDispacther
from depyf.optimization import TorchCompileWrapperWithCustomDispatcher


class MyMod(torch.nn.Module):
Expand All @@ -13,7 +13,7 @@ def forward(self, x: torch.Tensor, cache: Optional[torch.Tensor] = None):
return x * 2


class MyWrapper(TorchCompileWrapperWithCustomDispacther):
class MyWrapper(TorchCompileWrapperWithCustomDispatcher):

def __init__(self, model):
self.model = model
Expand Down

0 comments on commit bad9a0f

Please sign in to comment.