Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shangzhizhou committed Apr 23, 2021
1 parent 86fd9ab commit bcf084c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions paddle/fluid/inference/tensorrt/convert/fc_op.cc
Expand Up @@ -196,11 +196,9 @@ class FcOpConverter : public OpConverter {
// add shuffle after fc
nvinfer1::Dims reshape_after_fc_dim;
reshape_after_fc_dim.nbDims = x_num_col_dims + 1;
for (int i = 0; i < x_num_col_dims; i++) {
for (int i = 0; i < reshape_after_fc_dim.nbDims; i++) {
reshape_after_fc_dim.d[i] = 0;
}
auto dim = fc_layer->getOutput(0)->getDimensions();
reshape_after_fc_dim.d[x_num_col_dims] = dim.d[x_num_col_dims];

auto* reshape_after_fc_layer =
TRT_ENGINE_ADD_LAYER(engine_, Shuffle, *fc_layer->getOutput(0));
Expand Down

1 comment on commit bcf084c

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.