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
5867819e
Unverified
Commit
5867819e
authored
Dec 04, 2025
by
Laith Sakka
Committed by
GitHub
Dec 05, 2025
Browse files
Do not guard during noop elimination pass (#30095)
Signed-off-by:
Laith Sakka
<
lsakka@meta.com
>
parent
7c9b2c8f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
vllm/compilation/noop_elimination.py
vllm/compilation/noop_elimination.py
+2
-6
No files found.
vllm/compilation/noop_elimination.py
View file @
5867819e
...
...
@@ -5,6 +5,7 @@ from collections.abc import Iterable
import
torch.fx
from
torch
import
SymInt
from
torch.fx.experimental.symbolic_shapes
import
statically_known_true
from
vllm.logger
import
init_logger
...
...
@@ -116,12 +117,7 @@ class NoOpEliminationPass(VllmInductorPass):
2. The dimensions both correspond to the same SymInt
"""
# Case 1
if
isinstance
(
i_dim
,
int
)
and
isinstance
(
dim
,
int
):
return
dim
==
i_dim
# Case 2
if
isinstance
(
i_dim
,
SymInt
)
and
isinstance
(
dim
,
SymInt
):
return
dim
==
i_dim
return
False
return
statically_known_true
(
dim
==
i_dim
)
def
all_dims_equivalent
(
self
,
dims
:
Iterable
[
int
|
SymInt
],
i_dims
:
Iterable
[
int
|
SymInt
]
...
...
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