q_network.py 文件源码

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

项目:agent-trainer 作者: lopespm 项目源码 文件源码
def _linear_layer(self, input, input_size, output_size, scope_name):
        with tf.variable_scope(scope_name) as scope:
            weights = tf.Variable(name='weights',
                                  initial_value=tf.truncated_normal(shape=[input_size, output_size], stddev=0.1))
            biases = tf.Variable(name='biases', initial_value=tf.constant(value=0.1, shape=[output_size]))
            output = tf.matmul(input, weights) + biases
        return output
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号