ngraph icon indicating copy to clipboard operation
ngraph copied to clipboard

NVGPU: support pad value for padding

Open fengleitian opened this issue 8 years ago • 1 comments

fengleitian avatar Oct 04 '18 16:10 fengleitian

Partially supported in #1759.

We still need a way to express datatype independent padding with type-based min/max pad value - e.g. using gpu::TypeInfo. We could do this by adding an entry for the ops that require custom padding (e.g. cudnn MaxPool) in GPULayout. The entry would add in an op::Pad and an op::Constant = TypeInfo::Get(element_type)->lowest(). Alternatively, a custom kernel can be used as was done previously in the old static CUDAEmitter::build_pad.

csullivan avatar Oct 08 '18 17:10 csullivan