Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-snd committed Sep 24, 2022
1 parent 7f23cce commit 2cd0cac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/trecover/train/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ def max_noise(self, value: int) -> None:
self._max_noise.value = value

def sync(self, verbose: bool = False) -> None:
if verbose:
log.project_console.print('BaseCollate:Unable to synchronize CollabCollate arguments', style='yellow',
justify='right')
pass

def generate_subsequent_mask(self, size: int) -> Tensor:
return torch.triu(torch.ones((size, size), dtype=torch.float, device=self.device), diagonal=1) == 1
Expand Down

0 comments on commit 2cd0cac

Please sign in to comment.