linear.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:static-define-by-run 作者: bkvogel 项目源码 文件源码
def __call__(self, x):
        """Applies the linear layer.

        Args:
            x (~chainer.Variable): Batch of input vectors.

        Returns:
            ~chainer.Variable: Output of the linear layer.

        """
        if self.has_uninitialized_params:
            with cuda.get_device(self._device_id):
                self._initialize_params(x.size // x.shape[0])
        return linear.linear(x, self.W, self.b)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号