Fix quantization tool bugs when model nodes have no name. (#3854)

Fix bugs when model nodes have no name.
This commit is contained in:
Zhang Lei 2020-05-12 20:38:26 -07:00 committed by GitHub
parent 9b5daa2039
commit eab61e87ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -242,7 +242,9 @@ def main():
args = parser.parse_args()
calibrate_op_types = args.op_types.split(',')
black_nodes = args.black_nodes.split(',')
black_nodes = [x for x in black_nodes if x]
white_nodes = args.white_nodes.split(',')
white_nodes = [x for x in white_nodes if x]
model_path = args.model_path
output_model_path = args.output_model_path
images_folder = args.dataset_path