Skip to content

Commit 93e36b0

Browse files
fix a bug in GetTrtWeight (#48993)
1 parent 4c0d46a commit 93e36b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/inference/tensorrt/engine.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ TensorRTEngine::Weight TensorRTEngine::GetTrtWeight(
732732
for (int i = 0; i < weight_tensor.numel(); i++) {
733733
int32_data[i] = int64_data[i];
734734
}
735-
weight.SetDataType(phi::DataType::FLOAT32);
735+
weight.SetDataType(phi::DataType::INT32);
736736
weight.SetValues(int32_data);
737737
} else {
738738
paddle::framework::TensorCopySync(

0 commit comments

Comments
 (0)