@@ -196,11 +196,11 @@ def init(subparsers):
196196 )
197197
198198 p .add_argument (
199- "--input_scales" , default = None , nargs = "+" , type = float ,
199+ "--input_scales" , default = None , nargs = "+" , type = str ,
200200 )
201201
202202 p .add_argument (
203- "--input_zero_points" , default = None , nargs = "+" , type = int ,
203+ "--input_zero_points" , default = None , nargs = "+" , type = str ,
204204 )
205205
206206 p .add_argument (
@@ -313,11 +313,11 @@ def init(subparsers):
313313 )
314314
315315 p .add_argument (
316- "--input_scales" , default = None , nargs = "+" , type = float ,
316+ "--input_scales" , default = None , nargs = "+" , type = str ,
317317 )
318318
319319 p .add_argument (
320- "--input_zero_points" , default = None , nargs = "+" , type = int ,
320+ "--input_zero_points" , default = None , nargs = "+" , type = str ,
321321 )
322322
323323 p .add_argument (
@@ -347,7 +347,7 @@ def init(subparsers):
347347 def to_tflite (args ):
348348 if "tracedmodule" in target :
349349 mgeconvert .tracedmodule_to_tflite (
350- mge_fpath = args .input ,
350+ args .input ,
351351 output = args .output ,
352352 input_data_type = args .input_data_type ,
353353 input_scales = args .input_scales ,
@@ -361,7 +361,7 @@ def init(subparsers):
361361 )
362362 else :
363363 mgeconvert .mge_to_tflite (
364- mge_fpath = args .input ,
364+ args .input ,
365365 output = args .output ,
366366 graph_name = args .graph_name ,
367367 mtk = args .mtk ,
@@ -395,13 +395,13 @@ def init(subparsers):
395395 p .add_argument (
396396 "--input_scales" ,
397397 default = None ,
398- type = Union [ float , List [ float ]] ,
398+ type = str ,
399399 help = "the scale of input data used for quantize model input" ,
400400 )
401401 p .add_argument (
402402 "--input_zero_points" ,
403403 default = None ,
404- type = Union [ int , List [ int ]] ,
404+ type = str ,
405405 help = "the zero point of input data used for quantize model input" ,
406406 )
407407 p .add_argument (
0 commit comments