mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-08 16:44:20 +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)
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user