Merge pull request #162 from farizrahman4u/save_load_utils_tf_only

save_load_utils_test.py becomes tensorflow only to fix test failure until #157 is resolved
This commit is contained in:
Andrew Hundt
2017-10-15 14:23:42 -04:00
committed by GitHub
@@ -4,10 +4,13 @@ from keras import backend as K
from keras.layers import Input, Dense
from keras.models import Model
from numpy.testing import assert_allclose
from keras.utils.test_utils import keras_test
from keras_contrib.utils.save_load_utils import save_all_weights, load_all_weights
@pytest.mark.skipif(K.backend() != 'tensorflow', reason='save_all_weights and load_all_weights only supported on TensorFlow')
@keras_test
def test_save_and_load_all_weights():
'''
Test save_all_weights and load_all_weights. Save and load optimizer and model weights but not configuration.