예제 #1
0
def test_gaussian_kl():
    graph = OrderedDict()
    X_sym = add_datasets_to_graph([X], ["X"], graph)
    fake_sigma = (.5 * X_sym + .001) ** 2
    kl = gaussian_kl([X_sym, X_sym], [fake_sigma, fake_sigma], graph,
                     'gaussian_kl')
    theano.function([X_sym], [kl], mode="FAST_COMPILE")
예제 #2
0
def test_gaussian_kl():
    fake_sigma = (.5 * X_sym + .001) ** 2
    kl = gaussian_kl([X_sym, X_sym], [fake_sigma, fake_sigma])
    theano.function([X_sym], [kl], mode="FAST_COMPILE")
예제 #3
0
def test_gaussian_kl():
    fake_sigma = (.5 * X_sym + .001)**2
    kl = gaussian_kl([X_sym, X_sym], [fake_sigma, fake_sigma])
    theano.function([X_sym], [kl], mode="FAST_COMPILE")