Skip to content

Commit 8fb760d

Browse files
authored
change anakin apis, test=develop (#20692)
1 parent 4cf499c commit 8fb760d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

paddle/fluid/inference/api/api_anakin_engine.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ bool PaddleInferenceAnakinPredictor<T, P, R>::RunImpl(
203203
<< "'s type is not float";
204204
}
205205
auto d_tensor_p = this->executor_p_->get_in(input.name);
206-
auto net_shape = d_tensor_p->valid_shape();
206+
// For backward compatibility.
207+
auto net_shape = d_tensor_p->shape();
207208
if (net_shape.size() != input.shape.size()) {
208209
LOG(FATAL) << " input " << input.name
209210
<< "'s shape size should be equal to that of net";

0 commit comments

Comments
 (0)