调用 export_sparse_model() 以获取从稀疏模型转换所得网络及稀疏权重,用于在硬件上为指定稀疏计算执行推断。 model = sparse_pruner.export_sparse_model(sparse_model)