Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzaida committed Feb 19, 2024
1 parent e5eb97b commit 7a25cd9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/en/api/strategy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ mmengine._strategy
:nosignatures:
:template: classtemplate.rst

CollosalAIModelWrapper
ColossalAIModelWrapper
ColossalAIOptimWrapper
2 changes: 1 addition & 1 deletion docs/zh_cn/api/strategy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ mmengine._strategy
:nosignatures:
:template: classtemplate.rst

CollosalAIModelWrapper
ColossalAIModelWrapper
ColossalAIOptimWrapper
5 changes: 2 additions & 3 deletions tests/test_fileio/test_fileclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class MockS3Client:
def __init__(self, enable_mc=True):
self.enable_mc = enable_mc

def Get(self, filepath) -> bytes:
def Get(self, filepath):
with open(filepath, 'rb') as f:
content = f.read()
return content
Expand All @@ -93,7 +93,7 @@ def __init__(self,
self.enable_multi_cluster = enable_multi_cluster
self.conf_path = conf_path

def Get(self, filepath) -> bytes:
def Get(self, filepath):
with open(filepath, 'rb') as f:
content = f.read()
return content
Expand Down Expand Up @@ -300,7 +300,6 @@ def test_petrel_backend(self, backend, prefix):

# input path is Path object
img_bytes = petrel_backend.get(self.img_path)
print(img_bytes)
img = imfrombytes(img_bytes)
assert img.shape == self.img_shape
# input path is str
Expand Down

0 comments on commit 7a25cd9

Please sign in to comment.