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

Function _get_pixel

python/tvm/topi/testing/grid_sample_python.py:55–58  ·  view source on GitHub ↗
(b, c, h, w)

Source from the content-addressed store, hash-verified

53 out = np.zeros(out_shape)
54
55 def _get_pixel(b, c, h, w):
56 if 0 <= h <= in_height - 1 and 0 <= w <= in_width - 1:
57 return data[b, c, h, w]
58 return 0
59
60 def _unnormalize(h, w):
61 if align_corners:

Callers 4

_nearest_sampleFunction · 0.70
_bilinear_sampleFunction · 0.70
coefficients_along_xFunction · 0.70
_triilinear_sampleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…