MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / do_pad

Function do_pad

tensorflow/python/ops/image_ops_impl.py:3456–3459  ·  view source on GitHub ↗
(images, remainder)

Source from the content-addressed store, hash-verified

3454 divisor_tensor = constant_op.constant(divisor[1:], dtype=dtypes.int32)
3455
3456 def do_pad(images, remainder):
3457 padding = array_ops.expand_dims(remainder, -1)
3458 padding = array_ops.pad(padding, [[1, 0], [1, 0]])
3459 return [array_ops.pad(x, padding, mode='SYMMETRIC') for x in images]
3460
3461 mcs = []
3462 for k in range(len(power_factors)):

Callers 1

ssim_multiscaleFunction · 0.85

Calls 1

expand_dimsMethod · 0.45

Tested by

no test coverage detected