Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:interactiveaudiolab/penn into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrmorrison committed Jan 14, 2024
2 parents 9e515d2 + 63c36f5 commit 7b39a6e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions penn/decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ def __call__(self, logits):
gpu = (
None if distributions.device.type == 'cpu'
else distributions.device.index)
bins = torbi.decode(
distributions[0].T,
self.transition,
self.initial,
gpu)
bins = torbi.from_probabilities(
observation=distributions[0].T.unsqueeze(dim=0),
transition=self.transition,
initial=self.initial,
gpu=gpu)

# Convert to frequency in Hz
if self.local_expected_value:
Expand Down Expand Up @@ -131,11 +131,11 @@ def __call__(self, logits):
gpu = (
None if distributions.device.type == 'cpu'
else distributions.device.index)
bins = torbi.decode(
distributions[0].T,
self.transition,
self.initial,
gpu)
bins = torbi.from_probabilities(
observation=distributions[0].T.unsqueeze(dim=0),
transition=self.transition,
initial=self.initial,
gpu=gpu)

# Convert to frequency in Hz
if self.local_expected_value:
Expand Down

0 comments on commit 7b39a6e

Please sign in to comment.