q_network.py 文件源码

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

项目:Q-Optimality-Tightening 作者: ShibiHe 项目源码 文件源码
def build_linear_network(self, input_width, input_height, output_dim,
                             num_frames, batch_size):
        """
        Build a simple linear learner.  Useful for creating
        tests that sanity-check the weight update code.
        """

        l_in = lasagne.layers.InputLayer(
            shape=(None, num_frames, input_width, input_height)
        )

        l_out = lasagne.layers.DenseLayer(
            l_in,
            num_units=output_dim,
            nonlinearity=None,
            W=lasagne.init.Constant(0.0),
            b=None
        )

        return l_out
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号