未验证 提交 10bdb0c2 编写于 作者: G gushiqiao 提交者: GitHub

Update fine_tune.py (#1509)

上级 a3875128
...@@ -57,6 +57,8 @@ def argsparser(): ...@@ -57,6 +57,8 @@ def argsparser():
type=bool, type=bool,
default=False, default=False,
help='simulate activation quant') help='simulate activation quant')
parser.add_argument(
'--epochs', type=int, default=20, help='steps to reconstruct')
return parser return parser
...@@ -104,9 +106,7 @@ def main(): ...@@ -104,9 +106,7 @@ def main():
simulate_activation_quant=FLAGS.simulate_activation_quant, simulate_activation_quant=FLAGS.simulate_activation_quant,
regions=config['regions'], regions=config['regions'],
region_weights_names=config['region_weights_names'], region_weights_names=config['region_weights_names'],
skip_tensor_list=config['skip_tensor_list'] epochs=FLAGS.epochs,
if 'skip_tensor_list' in config else None,
epochs=20,
lr=0.1) lr=0.1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册