Radeon ProRender

rml_padding_type

The padding calculation algorithm.

  • If padding type is one of {RML_PADDING_SAME_LOWER, RML_PADDING_SAME_UPPER, RML_PADDING_SAME}, then paddings will be added to output_spatial_size[i] = ceil(input_spatial_size[i] / strides[i]).
  • In case of odd number add the extra padding at the end for RML_PADDING_SAME_UPPER and at the beginning for RML_PADDING_SAME_LOWER.
  • Padding type RML_PADDING_VALID actually means no padding and in this case output_spatial_size[i] = ceil((input_spatial_size[i] - (kernel_size[i]-1) dilations[i]) / strides[i]).
  • Padding type RML_PADDING_EXPLICIT means explicit start and end paddings are used.

API

Graph Manipulation

Items

Name Value
RML_PADDING_UNSPECIFIED 0
RML_PADDING_EXPLICIT 605
RML_PADDING_SAME_LOWER 610
RML_PADDING_SAME_UPPER 615
RML_PADDING_SAME RML_PADDING_SAME_UPPER
RML_PADDING_VALID 620