Skip to content

Commit

Permalink
Merge pull request #50 from torchkge-team/develop
Browse files Browse the repository at this point in the history
Fixed a wrong assertion error.
  • Loading branch information
armand33 authored Jul 22, 2019
2 parents 386b955 + a23a62d commit 20b44eb
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.10.1
current_version = 0.10.2
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/torchkge-team/torchkge',
version='0.10.1',
version='0.10.2',
zip_safe=False,
)
2 changes: 1 addition & 1 deletion torchkge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

__author__ = """Armand Boschin"""
__email__ = '[email protected]'
__version__ = '0.10.1'
__version__ = '0.10.2'

from .data import KnowledgeGraph

Expand Down
1 change: 0 additions & 1 deletion torchkge/models/SemanticMatchingModels.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,6 @@ def __init__(self, ent_emb_dim, n_entities, n_relations, scalar_share=0.5):
self.ent_emb_dim)

assert (self.real_mask.sum() == self.im_mask.sum() == self.smaller_dim)
assert (self.scalar_mask.sum() == self.real_mask.sum() * 2)

def compute_product(self, heads, tails, rel_mat):
"""Compute the matrix product h^tRt with proper reshapes. It can do the batch matrix
Expand Down
1 change: 1 addition & 0 deletions torchkge/sampling/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from .NegativeSampling import PositionalNegativeSampler
from .NegativeSampling import BernoulliNegativeSampler
from .NegativeSampling import UniformNegativeSampler

0 comments on commit 20b44eb

Please sign in to comment.