Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yihming committed Jun 10, 2021
1 parent 1c46d21 commit ab041ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nmf/_inmf_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def _initialize_W_H_V(self):
for k in range(self._n_batches):
H = 2.0 * torch.rand((self.X[k].shape[0], self._n_components), dtype=self._tensor_dtype, device=self._device_type)
V = 2.0 * torch.rand((self._n_components, self._n_features), dtype=self._tensor_dtype, device=self._device_type)
self.H.append(H)
self.V.append(V)


def _trace(self, A, B):
Expand Down

0 comments on commit ab041ba

Please sign in to comment.