nnblocks.py 文件源码

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

项目:ADD-GAN 作者: zblasingame 项目源码 文件源码
def reset_weights(self):
        """Returns a TensorFlow operation to resets TensorFlow weights
        so the model can be used again.

        Returns:
            list [tf.Operation]: List of operations to reassign weights.
        """

        weights = [entry['weights'] for entry in self.network]
        weights.extend([entry['biases'] for entry in self.network])

        return [weight.assign(tf.random_normal(weight.get_shape(), stddev=0.1))
                for weight in weights]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号