MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / _preprocess_patch_list

Function _preprocess_patch_list

tensorpack/utils/viz.py:69–75  ·  view source on GitHub ↗
(plist)

Source from the content-addressed store, hash-verified

67
68
69def _preprocess_patch_list(plist):
70 plist = np.asarray(plist)
71 assert plist.dtype != np.object
72 if plist.ndim == 3:
73 plist = plist[:, :, :, np.newaxis]
74 assert plist.ndim == 4 and plist.shape[3] in [1, 3], plist.shape
75 return plist
76
77
78def _pad_patch_list(plist, bgcolor):

Callers 2

stack_patchesFunction · 0.85
gen_stack_patchesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected