MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / linear

Function linear

utils/resize_right/interp_methods.py:61–64  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

59
60@support_sz(2)
61def linear(x):
62 fw, to_dtype, eps = set_framework_dependencies(x)
63 return ((x + 1) * to_dtype((-1 <= x) & (x < 0)) + (1 - x) *
64 to_dtype((0 <= x) & (x <= 1)))
65
66
67@support_sz(1)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected