MCPcopy Create free account
hub / github.com/crowsonkb/style_transfer / pad_width

Function pad_width

num_utils.py:165–176  ·  view source on GitHub ↗

Returns the amount to pad each axis of an array on in order to be divisible by its corresponding divisor. It is intended to be used to generate the 'pad_width' parameter for numpy.pad().

(shape, divisors)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

_swt_normFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected