コード例 #1
0
ファイル: prelu.py プロジェクト: BRETT71/chainer
    def __call__(self, x):
        """Applies the parametric ReLU activation function.

        Args:
            x (~chainer.Variable): Input variable.

        Returns:
            ~chainer.Variable: Output of the parametric ReLU function.

        """
        return prelu.prelu(x, self.W)
コード例 #2
0
ファイル: prelu.py プロジェクト: Teppei-Kanayama/myChainer
    def __call__(self, x):
        """Applies the parametric ReLU activation function.

        Args:
            x (~chainer.Variable): Input variable.

        Returns:
            ~chainer.Variable: Output of the parametric ReLU function.

        """
        return prelu.prelu(x, self.W)