mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-10 13:30:19 +00:00
[misc] update pre-commit and run all files (#4752)
* [misc] update pre-commit * [misc] run pre-commit * [misc] remove useless configuration files * [misc] ignore cuda for clang-format
This commit is contained in:
@@ -59,7 +59,7 @@ class Registry:
|
||||
for lib in self._third_party_lib:
|
||||
if hasattr(lib, module_name):
|
||||
return getattr(lib, module_name)
|
||||
raise NameError(f'Module {module_name} not found in the registry {self.name}')
|
||||
raise NameError(f"Module {module_name} not found in the registry {self.name}")
|
||||
|
||||
def has(self, module_name: str):
|
||||
"""Searches for a module with name `module_name` and returns a boolean value indicating
|
||||
|
Reference in New Issue
Block a user