MCPcopy Create free account
hub / github.com/NVIDIA/FastPhotoStyle / __rolling_block

Method __rolling_block

photo_smooth.py:96–99  ·  view source on GitHub ↗
(self, A, block=(3, 3))

Source from the content-addressed store, hash-verified

94 return ans
95
96 def __rolling_block(self, A, block=(3, 3)):
97 shape = (A.shape[0] - block[0] + 1, A.shape[1] - block[1] + 1) + block
98 strides = (A.strides[0], A.strides[1]) + A.strides
99 return as_strided(A, shape=shape, strides=strides)

Callers 1

__compute_laplacianMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected