1- /* Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
2-
3- Licensed under the Apache License, Version 2.0 (the "License");
4- you may not use this file except in compliance with the License.
5- You may obtain a copy of the License at
6-
7- http://www.apache.org/licenses/LICENSE-2.0
8-
9- Unless required by applicable law or agreed to in writing, software
10- distributed under the License is distributed on an "AS IS" BASIS,
11- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12- See the License for the specific language governing permissions and
13- limitations under the License. */
1+ // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
2+ //
3+ // Licensed under the Apache License, Version 2.0 (the "License");
4+ // you may not use this file except in compliance with the License.
5+ // You may obtain a copy of the License at
6+ //
7+ // http://www.apache.org/licenses/LICENSE-2.0
8+ //
9+ // Unless required by applicable law or agreed to in writing, software
10+ // distributed under the License is distributed on an "AS IS" BASIS,
11+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ // See the License for the specific language governing permissions and
13+ // limitations under the License.
1414
1515#include " paddle/fluid/inference/tensorrt/convert/op_converter.h"
1616#include " paddle/fluid/inference/tensorrt/plugin/c_allreduce_op_plugin.h"
@@ -32,8 +32,9 @@ class CAllReduceOpConverter : public OpConverter {
3232 bool test_mode) override {
3333 VLOG (4 ) << " convert fluid callreduce op to tensorrt layer" ;
3434 if (!engine_->with_dynamic_shape ()) {
35- PADDLE_THROW (platform::errors::Fatal (
36- " Unsupported static mode. Please set dynamic shape of inputs." ));
35+ PADDLE_THROW (
36+ platform::errors::Fatal (" Unsupported static graph mode. Please set "
37+ " dynamic shape of inputs." ));
3738 }
3839 ReduceType red_type = op_to_reduce_type[op.type ()];
3940 std::string name = op.type ();
0 commit comments