Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ASLP-lab/OSUM
/ dropout_complex
Method
dropout_complex
OSUM/wenet/transformer/embedding.py:253–259 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
251
return
pos_emb
252
253
def
dropout_complex(self, x):
254
mask = torch.nn.functional.dropout(
255
torch.ones_like(x.real),
256
training=self.training,
257
p=self.dropout_rate,
258
)
259
return
x * mask
Callers
1
position_encoding
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected