Remove imports from iree.compiler.transforms from model annotator. (#1392)

This commit is contained in:
Ean Garvey
2023-05-04 20:40:19 -07:00
committed by GitHub
parent 6c14847d1f
commit cdf2d61d53
2 changed files with 1 additions and 3 deletions

View File

@@ -31,7 +31,6 @@ import sys
from typing import Dict, List
from iree.compiler import ir
from iree.compiler.transforms import ireec as ireec_trans
def model_annotation(
@@ -409,7 +408,6 @@ def shape_list_to_string(input):
def create_context() -> ir.Context:
context = ir.Context()
ireec_trans.register_all_dialects(context)
context.allow_unregistered_dialects = True
return context

View File

@@ -196,7 +196,7 @@ def download_model(
tank_url=None,
frontend=None,
tuned=None,
import_args=None,
import_args={"batch_size": 1},
):
model_name = model_name.replace("/", "_")
dyn_str = "_dynamic" if dynamic else ""