Skip to content

Commit c81229e

Browse files
committed
- fix
1 parent 0097cd6 commit c81229e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/inference/tests/api/analyzer_detect_functional_mkldnn_tester.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void validate_cache_onednn(int cache_capacity = 1) {
124124
// as internally reorders may be called
125125
// so it will impact cache size
126126
auto output_names = predictor->GetOutputNames();
127-
auto output_t = predictor->GetOutputHandle(output_names[0]);
127+
auto output_t = predictor->GetOutputTensor(output_names[0]);
128128
std::vector<int> output_shape = output_t->shape();
129129
size_t out_num = std::accumulate(output_shape.begin(), output_shape.end(), 1,
130130
std::multiplies<int>());

0 commit comments

Comments
 (0)