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

Function cubic_weight_2

python/tvm/topi/testing/grid_sample_python.py:145–146  ·  view source on GitHub ↗
(x_fraction)

Source from the content-addressed store, hash-verified

143 return ((A + 2) * x_fraction - (A + 3)) * x_fraction * x_fraction + 1
144
145 def cubic_weight_2(x_fraction):
146 return ((A * x_fraction - 5 * A) * x_fraction + 8 * A) * x_fraction - 4 * A
147
148 def cubic_interp_1d(pixel_0, pixel_1, pixel_2, pixel_3, x_fraction):
149 weights = [0] * 4

Callers 1

cubic_interp_1dFunction · 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…