Skip to content

Commit

Permalink
Merge pull request #285 from dice-group/batched-evaluation-memory-fix
Browse files Browse the repository at this point in the history
Fix memory allocation issue
  • Loading branch information
Demirrr authored Nov 30, 2024
2 parents 7580606 + 6638da6 commit 787b535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dicee/static_funcs_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def make_iterable_verbose(iterable_object, verbose, desc="Default", position=Non
else:
return iterable_object


@torch.no_grad()
def evaluate_lp(model, triple_idx, num_entities, er_vocab: Dict[Tuple, List], re_vocab: Dict[Tuple, List],
info='Eval Starts', batch_size=128, chunk_size=1000):
"""
Expand Down

0 comments on commit 787b535

Please sign in to comment.