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 c8adfb3 commit 4f71a3bCopy full SHA for 4f71a3b
paddle/fluid/inference/tensorrt/convert/ut_helper.h
@@ -162,7 +162,8 @@ class TRTConvertValidation {
162
163
size_t fluid_out_size = fluid_out.size();
164
if (if_add_batch_ == true) {
165
- fluid_out_size = batch_size * (tensor->dims().size() / max_batch_size_);
+ fluid_out_size =
166
+ batch_size * (framework::product(tensor->dims()) / max_batch_size_);
167
}
168
// Compare two output
169
ASSERT_FALSE(fluid_out.empty());
0 commit comments