Skip to content

Commit

Permalink
Remote OptimizeBatchnorm pass. Redundant with DecomposeOpsForInference.
Browse files Browse the repository at this point in the history
  • Loading branch information
srkreddy1238 committed Jan 28, 2025
1 parent 89f0dd8 commit 31819e6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 106 deletions.
1 change: 0 additions & 1 deletion python/tvm/relax/transform/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
from .lazy_transform_params import LazyTransformParams
from .lower_gpu_ipc_alloc_storage import LowerGPUIPCAllocStorage
from .optimize_layout_transform import OptimizeLayoutTransform
from .optimize_batchnorm import OptimizeBatchnorm
from .remove_redundant_reshape import RemoveRedundantReshape

# Import to register the legalization functions.
Expand Down
103 changes: 0 additions & 103 deletions python/tvm/relax/transform/optimize_batchnorm.py

This file was deleted.

2 changes: 0 additions & 2 deletions tests/python/relax/test_transform_annotate_custom_scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ def verify(mod, expected):
tgt = tvm.target.Target("opencl --device=adreno", host="llvm")
with tgt:
mod = tvm.tir.transform.BindTarget(tvm.target.Target.current(allow_none=False))(mod)
mod = tvm.relax.transform.OptimizeBatchnorm()(mod)
mod = tvm.relax.transform.FoldConstant()(mod)
mod = tvm.relax.transform.DecomposeOpsForInference()(mod)
mod = tvm.relax.transform.FoldConstant()(mod)
desired_layouts = {"relax.nn.conv2d": ["NCHW4c", "OIHW4o", "NCHW4c"]}
Expand Down

0 comments on commit 31819e6

Please sign in to comment.