Skip to content

Commit

Permalink
sparsity support
Browse files Browse the repository at this point in the history
  • Loading branch information
JZZ-NOTE committed Oct 13, 2021
1 parent 7d0d7e9 commit 3f8566f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions paddle/fluid/inference/tensorrt/engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ void TensorRTEngine::FreezeNetwork() {
infer_engine_.reset(infer_builder_->buildEngineWithConfig(
*network(), *infer_builder_config_));
#else
infer_builder_config_->setFlag(nvinfer1::BuilderFlag::kSPARSE_WEIGHTS);
infer_ptr<nvinfer1::IHostMemory> plan(infer_builder_->buildSerializedNetwork(
*network(), *infer_builder_config_));
infer_ptr<nvinfer1::IRuntime> runtime(createInferRuntime(&logger_));
Expand Down

1 comment on commit 3f8566f

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵️ CI failures summary

🔍 PR: #36413 Commit ID: 3f8566f contains failed CI.

🔹 Failed: PR-CI-Kunlun-Inference-Directed-cyclic-graph

Unknown Failed
2021-10-13 23:25:26 [ 30%] Linking CXX static library liblite_op_teller.a
2021-10-13 23:25:26 [ 30%] Built target lite_op_teller
2021-10-13 23:25:26 [ 30%] Linking CXX static library libgraph.a
2021-10-13 23:25:26 [ 30%] Built target graph
2021-10-13 23:25:29 [ 30%] Linking CXX static library liblite_tensor_utils.a
2021-10-13 23:25:29 [ 30%] Built target lite_tensor_utils
2021-10-13 23:25:29 [ 30%] Linking CXX static library libwhile_op_helper.a
2021-10-13 23:25:29 [ 30%] Built target while_op_helper
2021-10-13 23:25:30 [ 30%] Linking CXX static library libcomputation_op_handle.a
2021-10-13 23:25:30 [ 30%] Built target computation_op_handle
2021-10-13 23:25:30 [ 30%] Linking CXX static library libshare_tensor_buffer_functor.a
2021-10-13 23:25:30 [ 30%] Built target share_tensor_buffer_functor
2021-10-13 23:25:30 [ 30%] Linking CXX static library librpc_op_handle.a
2021-10-13 23:25:30 [ 30%] Built target rpc_op_handle
2021-10-13 23:25:30 [ 30%] Linking CXX static library libfetch_barrier_op_handle.a
2021-10-13 23:25:30 [ 30%] Built target fetch_barrier_op_handle
2021-10-13 23:25:30 [ 30%] Linking CXX static library libdevice_event_base.a
2021-10-13 23:25:30 [ 30%] Built target device_event_base
2021-10-13 23:25:30 make64: *** [all] Error 2

Please sign in to comment.