Esempio n. 1
0
def test_activation():
    """
    Test the layer.Activation class and its default attributes. No need to test the call() function since its
    a tensorflow class
    """
    activation = layer.Activation()
    assert isinstance(activation._act, type(tf.keras.activations.relu))
Esempio n. 2
0
def test_activation():
    """
    Test the layer.Activation class and its default attributes.
    """
    activation = layer.Activation()
    assert isinstance(activation._act, type(tf.keras.activations.relu))