uniformx.py 文件源码

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

项目:cgpm 作者: probcomp 项目源码 文件源码
def __init__(self, outputs=None, inputs=None, low=0, high=1, rng=None):
        assert not inputs
        if rng is None:
            rng = gu.gen_rng(0)
        if outputs is None:
            outputs = [0]
        self.rng = rng
        self.low = low
        self.high = high
        self.outputs = outputs
        self.inputs = []
        self.uniform = uniform(loc=self.low, scale=self.high-self.low)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号