示例#1
0
 def test_set_weights(self):
     model = lambda: create_test_model(10, 10)
     model = FFNet(model)
     weights = model.get_weights()
     for w in weights:
         w = w * 2
     model.set_weights(weights)
示例#2
0
 def test_get_weights(self):
     model = lambda: create_test_model(10, 10)
     model = FFNet(model)
     weights = model.get_weights()