MCPcopy Create free account
hub / github.com/BVLC/caffe / inverse

Function inverse

python/caffe/coord_map.py:106–112  ·  view source on GitHub ↗

Invert a coord map by de-scaling and un-shifting; this gives the backward mapping for the gradient.

(coord_map)

Source from the content-addressed store, hash-verified

104
105
106def inverse(coord_map):
107 """
108 Invert a coord map by de-scaling and un-shifting;
109 this gives the backward mapping for the gradient.
110 """
111 ax, a, b = coord_map
112 return ax, 1 / a, -b / a
113
114
115def coord_map_from_to(top_from, top_to):

Callers 1

coord_map_from_toFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected