a70ba1c93102fe088a1c5f55eacb8bb81f6a7293,t3f/riemannian_test.py,RiemannianTest,testPairwiseFlatInner,#RiemannianTest#,140

Before Change


    what = initializers.random_matrix_batch(((2, 3, 4, 5), None), 4,
                                            batch_size=5)
    where = initializers.random_matrix(((2, 3, 4, 5), None), 3)
    projected = riemannian.project(what, where)
    desired = batch_ops.gram_matrix(projected)
    actual = riemannian.pairwise_flat_inner_projected(projected, projected)
    with self.test_session() as sess:
      desired_val, actual_val = sess.run((desired, actual))

After Change


                                             batch_size=5)
    where = initializers.random_matrix(((2, 3, 4, 5), None), 3)
    projected1 = riemannian.project(what1, where)
    projected2 = riemannian.project(what2, where)
    desired = batch_ops.pairwise_flat_inner(projected1, projected2)
    actual = riemannian.pairwise_flat_inner_projected(projected1, projected2)
    with self.test_session() as sess:
      desired_val, actual_val = sess.run((desired, actual))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: Bihaqo/t3f
Commit Name: a70ba1c93102fe088a1c5f55eacb8bb81f6a7293
Time: 2017-04-13
Author: novikov@bayesgroup.ru
File Name: t3f/riemannian_test.py
Class Name: RiemannianTest
Method Name: testPairwiseFlatInner


Project Name: JasonKessler/scattertext
Commit Name: ff26aee6f77f52d3e63b1aa6b26b5db678a91e32
Time: 2021-03-07
Author: JasonKessler@users.noreply.github.com
File Name: scattertext/categoryprojector/pairplot.py
Class Name:
Method Name: produce_category_focused_pairplot


Project Name: dmlc/dgl
Commit Name: 7ea777e1222686b2e07534526ebd152ff694bbde
Time: 2020-07-11
Author: mufeili1996@gmail.com
File Name: examples/pytorch/han/model_hetero.py
Class Name: SemanticAttention
Method Name: forward


Project Name: dmlc/dgl
Commit Name: 7ea777e1222686b2e07534526ebd152ff694bbde
Time: 2020-07-11
Author: mufeili1996@gmail.com
File Name: examples/pytorch/han/model.py
Class Name: SemanticAttention
Method Name: forward