• Brandon T. Willard's avatar
    Implement DimShuffle lifting optimization for RandomVariables · aad5d35c
    Brandon T. Willard 提交于
    This optimization does *not* preserve equality between the numeric
    results of the untransformed and transformed graphs when the RNGs and seeds are
    equal.  The reason is that the underlying sampler methods themselves are not
    implemented in Theano, so we cannot apply the requisite DimShuffle-like
    operations to the intermediate samples used to generate multiple replications
    and/or independent variates.
    
    For example, sampling a normal of size (3, 2) requires a draw of size (3, 2)
    from a standard normal and we can't transpose that (3, 2) array.  If we could,
    then we would be able to maintain numerical equality between graphs.
    aad5d35c
名称
最后提交
最后更新
..
__init__.py 正在载入提交数据...
test_basic.py 正在载入提交数据...
test_op.py 正在载入提交数据...
test_opt.py 正在载入提交数据...
test_type.py 正在载入提交数据...
test_utils.py 正在载入提交数据...
test_var.py 正在载入提交数据...