#!/usr/bin/env python
# -*- coding: utf-8 -*-

from . import NeuralLayer
from deepy.utils import build_activation

class Activation(NeuralLayer):
    """
    Activation layer.
    """

    def __init__(self, activation_type):
        super(Activation, self).__init__(activation_type)
        self._activation = build_activation(activation_type)

    def compute_tensor(self, x):
        return self._activation(x)
93853f7976a46429d94c1a255dc59de81b5dadab
<mask token>


class Activation(NeuralLayer):
    <mask token>
    <mask token>

    def compute_tensor(self, x):
        return self._activation(x)

<mask token>


class Activation(NeuralLayer):
    <mask token>

    def __init__(self, activation_type):
        super(Activation, self).__init__(activation_type)
        self._activation = build_activation(activation_type)

    def compute_tensor(self, x):
        return self._activation(x)

<mask token>


class Activation(NeuralLayer):
    """
    Activation layer.
    """

    def __init__(self, activation_type):
        super(Activation, self).__init__(activation_type)
        self._activation = build_activation(activation_type)

    def compute_tensor(self, x):
        return self._activation(x)

from . import NeuralLayer
from deepy.utils import build_activation


class Activation(NeuralLayer):
    """
    Activation layer.
    """

    def __init__(self, activation_type):
        super(Activation, self).__init__(activation_type)
        self._activation = build_activation(activation_type)

    def compute_tensor(self, x):
        return self._activation(x)

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from . import NeuralLayer
from deepy.utils import build_activation

class Activation(NeuralLayer):
    """
    Activation layer.
    """

    def __init__(self, activation_type):
        super(Activation, self).__init__(activation_type)
        self._activation = build_activation(activation_type)

    def compute_tensor(self, x):
        return self._activation(x)