Contents

BNNSGraph.Builder.ConvolutionPadding.custom(padding:)

Custom padding

Declaration

case custom(padding: [Int])

Discussion

Specify the padding array to contain twice the number of spatial dimensions. padding[2*k] specifies the amount of padding before spatial dimension k, and padding[2*k+1] specifies the amount of padding after spatial dimension k.