"...git@developer.sourcefind.cn:OpenDAS/colossalai.git" did not exist on "c701b77b1131a9095f3dca454da4ec667bcbf182"
Unverified Commit ea1a95b8 authored by Super Daniel's avatar Super Daniel Committed by GitHub
Browse files

[hotfix] fix coloproxy typos. (#1519)

parent af5438ca
...@@ -117,8 +117,8 @@ class ColoAttribute(ColoProxy): ...@@ -117,8 +117,8 @@ class ColoAttribute(ColoProxy):
method = getattr(meta_args[0].__class__, self.attr) method = getattr(meta_args[0].__class__, self.attr)
if meta_patched_function.has(method): if meta_patched_function.has(method):
meta_target = meta_patched_function.get(method) meta_target = meta_patched_function.get(method)
elif meta_patched_function.has(target.__name__): elif meta_patched_function.has(method.__name__):
meta_target = meta_patched_function.get(target.__name__) meta_target = meta_patched_function.get(method.__name__)
else: else:
meta_target = method meta_target = method
meta_out = meta_target(*meta_args, **meta_kwargs) meta_out = meta_target(*meta_args, **meta_kwargs)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment