Example #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))
Example #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))