mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Bug fix RE GPU device
This commit is contained in:
parent
71e927411a
commit
6fdb356315
@ -657,7 +657,7 @@ class FixedProjDrop(torch.nn.Module):
|
|||||||
|
|
||||||
rand_mat = torch.randn(num_channels, num_channels)
|
rand_mat = torch.randn(num_channels, num_channels)
|
||||||
U, _, _ = rand_mat.svd()
|
U, _, _ = rand_mat.svd()
|
||||||
self.U = U # a random orthogonal square matrix. will be a buffer.
|
self.register_buffer('U', U) # a random orthogonal square matrix. will be a buffer.
|
||||||
|
|
||||||
|
|
||||||
def forward(self, x: Tensor) -> Tensor:
|
def forward(self, x: Tensor) -> Tensor:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user