Exemplo n.º 1
0
    def test_on_start_epoch(self):
        def example(state):
            return state

        state = 'test'
        self.assertTrue(
            callbacks.on_start_epoch(example).on_start_epoch(state) == state)
Exemplo n.º 2
0
 def test_on_start_epoch(self):
     def example(state):
         return state
     state = 'test'
     self.assertTrue(callbacks.on_start_epoch(example).on_start_epoch(state) == state)