Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
c6461280
Unverified
Commit
c6461280
authored
Jan 21, 2025
by
Mengqing Cao
Committed by
GitHub
Jan 21, 2025
Browse files
[Platform] improve platforms getattr (#12264)
Signed-off-by:
Mengqing Cao
<
cmq0113@163.com
>
parent
9a7c3a00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vllm/platforms/__init__.py
vllm/platforms/__init__.py
+4
-1
No files found.
vllm/platforms/__init__.py
View file @
c6461280
...
...
@@ -217,8 +217,11 @@ def __getattr__(name: str):
global
_init_trace
_init_trace
=
""
.
join
(
traceback
.
format_stack
())
return
_current_platform
el
se
:
el
if
name
in
globals
()
:
return
globals
()[
name
]
else
:
raise
AttributeError
(
f
"No attribute named '
{
name
}
' exists in
{
__name__
}
."
)
__all__
=
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment