MCPcopy Create free account
hub / github.com/apache/tvm / _clip_coordinates

Function _clip_coordinates

python/tvm/topi/testing/grid_sample_python.py:69–70  ·  view source on GitHub ↗
(x, size)

Source from the content-addressed store, hash-verified

67 return (new_h, new_w)
68
69 def _clip_coordinates(x, size):
70 return min(max(x, 0), size - 1)
71
72 def _reflect_coordinates(i, size):
73 def __refelection(i, size, corner_start):

Callers 2

_compute_source_indexFunction · 0.70
coefficients_along_xFunction · 0.70

Calls 2

minFunction · 0.50
maxFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…