Skip to content

Commit

Permalink
removed boltzmann tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cmekik committed Feb 10, 2022
1 parent e6915cf commit 811f15a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/test_numdicts/test_numdicts.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,17 +699,6 @@ def test_transform_keys(self):#TODO FIX
self.assertAlmostEqual(g1[i], 1)


class TestNumdictsOpsBoltzmann(unittest.TestCase):
def test_boltzmann(self):#This always returns zero.... is this really what we want?
d = nd.NumDict(data={1: 1, 2: 2, 3: 3})
with GradientTape() as t:
d1 = boltzmann(d,1)
d1, g1 = t.gradients(d1, d)
for i in range(1, 5):
if(d1.get(i) != None):
self.assertAlmostEqual(g1[i], 0)


class TestNumdictsNested(unittest.TestCase):
def test_persistent(self):
for i, j in linspace(-10, 10):
Expand Down

0 comments on commit 811f15a

Please sign in to comment.