Skip to content

Commit

Permalink
fix passes.ConstantFolding (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzyczar authored Jun 29, 2023
1 parent 215b3c6 commit 2fb4b0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion model_analyzer/openvino_core_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# pylint: disable=import-error
from openvino.runtime import CompiledModel, Core, Model
from openvino.runtime.passes import ConstantFolding
from openvino.runtime.passes import Manager


Expand Down Expand Up @@ -35,7 +36,7 @@ def compile_model(self, model: Model, device: str) -> CompiledModel:
def pass_constant_folding(model: Model):
try:
pass_manager = Manager()
pass_manager.register_pass('ConstantFolding')
pass_manager.register_pass(ConstantFolding())
pass_manager.set_per_pass_validation(False)
pass_manager.run_passes(model)
# pylint: disable=broad-except
Expand Down

0 comments on commit 2fb4b0e

Please sign in to comment.