Commit a990017b authored by Philipp Arras's avatar Philipp Arras

Add first gradient tests

parent 0d1d2f31
Pipeline #52908 passed with stages
in 8 minutes and 6 seconds
......@@ -319,7 +319,7 @@ class Linearization(object):
def sinc(self):
tmp = self._val.sinc()
tmp2 = (self._val.cos()-tmp)/self._val
tmp2 = ((np.pi*self._val).cos()-tmp)/self._val
ind = self._val.local_data == 0
loc = tmp2.local_data.copy()
loc[ind] = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment