072e5680310c1cefef7e520c16bb20e92da3016d,geomstats/geometry/hypersphere.py,HypersphereMetric,exp,#HypersphereMetric#Any#Any#,342
Before Change
tangent_vec, base_point)
norm_tangent_vec = self.embedding_metric.norm(proj_tangent_vec)
n_tiles_vec = gs.cast(gs.divide(n_exps, n_tangent_vecs), gs.int32)
norm_tangent_vec = gs.tile(norm_tangent_vec, [n_tiles_vec, 1])
n_tiles_base_point = gs.cast(
gs.divide(n_exps, n_base_points), gs.int32)
base_point = gs.tile(base_point, [n_tiles_base_point, 1])
After Change
coef_1 = gs.squeeze(coef_1, axis=0)
einsum_str = "i,nj->nj"
elif n_base_points == 1:
base_point = gs.squeeze(base_point, axis=0)
einsum_str = "ni,j->nj"
else:
raise ValueError("Shape mismatch in einsum.")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: geomstats/geomstats
Commit Name: 072e5680310c1cefef7e520c16bb20e92da3016d
Time: 2020-01-17
Author: ninamio78@gmail.com
File Name: geomstats/geometry/hypersphere.py
Class Name: HypersphereMetric
Method Name: exp
Project Name: OpenNMT/OpenNMT-tf
Commit Name: a49ec3b70ea9c0d722aa081bd42e4425ace3222c
Time: 2019-04-06
Author: guillaumekln@users.noreply.github.com
File Name: opennmt/models/language_model.py
Class Name: LanguageModel
Method Name: _call
Project Name: arnomoonens/yarll
Commit Name: e902f7e4b0cf9626cb5e3e5b0851d1b5fc90318b
Time: 2019-04-28
Author: arno.moonens@gmail.com
File Name: yarll/agents/ppo/ppo.py
Class Name: PPOContinuous
Method Name: train