We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c0d46a commit 93e36b0Copy full SHA for 93e36b0
paddle/fluid/inference/tensorrt/engine.cc
@@ -732,7 +732,7 @@ TensorRTEngine::Weight TensorRTEngine::GetTrtWeight(
732
for (int i = 0; i < weight_tensor.numel(); i++) {
733
int32_data[i] = int64_data[i];
734
}
735
- weight.SetDataType(phi::DataType::FLOAT32);
+ weight.SetDataType(phi::DataType::INT32);
736
weight.SetValues(int32_data);
737
} else {
738
paddle::framework::TensorCopySync(
0 commit comments