builder_config = aie.BuilderConfig()
builder_config.flag = aie.BuilderFlag.fp16
data = builder.build_model(network, builder_config)
with open('resnet50.om', 'wb') as f: f.write(data.data)
del builder