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

Function validate_coords

tensorpack/dataflow/image.py:23–26  ·  view source on GitHub ↗
(coords)

Source from the content-addressed store, hash-verified

21
22
23def validate_coords(coords):
24 assert coords.ndim == 2, coords.ndim
25 assert coords.shape[1] == 2, coords.shape
26 assert np.issubdtype(coords.dtype, np.float), coords.dtype
27
28
29class ExceptionHandler:

Callers 2

_aug_mapperMethod · 0.85
_aug_mapperMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…