Skip to content

Commit

Permalink
feat(): support for adaptive_avg_pool2d plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Abhiram Iyer <abhirami@nvidia.com>

Signed-off-by: Abhiram Iyer <abhi.iyer.ai@gmail.com>
  • Loading branch information
abhi-iyer committed Jun 18, 2020
1 parent fa227b0 commit 52be580
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -175,6 +175,8 @@ int InterpolatePlugin::enqueue(const nvinfer1::PluginTensorDesc* inputDesc, cons
at::upsample_bilinear2d_out(output, input, {size[0], size[1]}, align_corners);
} else if (mode == "trilinear") {
at::upsample_trilinear3d_out(output, input, {size[0], size[1], size[2]}, align_corners);
} else if (mode == "adaptive_pool2d") {
at::adaptive_avg_pool2d_out(output, input, {size[0], size[1]});
}

cudaEvent_t torch_event;
Expand Down

0 comments on commit 52be580

Please sign in to comment.