Skip to content

Commit 52be580

Browse files
committed
feat(): support for adaptive_avg_pool2d plugin
Signed-off-by: Abhiram Iyer <[email protected]> Signed-off-by: Abhiram Iyer <[email protected]>
1 parent fa227b0 commit 52be580

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: core/conversion/converters/impl/plugins/interpolate_plugin.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ int InterpolatePlugin::enqueue(const nvinfer1::PluginTensorDesc* inputDesc, cons
175175
at::upsample_bilinear2d_out(output, input, {size[0], size[1]}, align_corners);
176176
} else if (mode == "trilinear") {
177177
at::upsample_trilinear3d_out(output, input, {size[0], size[1], size[2]}, align_corners);
178+
} else if (mode == "adaptive_pool2d") {
179+
at::adaptive_avg_pool2d_out(output, input, {size[0], size[1]});
178180
}
179181

180182
cudaEvent_t torch_event;

0 commit comments

Comments
 (0)