Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PyGCL/PyGCL
/ dropout_feature
Function
dropout_feature
GCL/augmentors/functional.py:99–100 ·
view source on GitHub ↗
(x: torch.FloatTensor, drop_prob: float)
Source
from the content-addressed store, hash-verified
97
98
99
def
dropout_feature(x: torch.FloatTensor, drop_prob: float) -> torch.FloatTensor:
100
return
F.dropout(x, p=1. - drop_prob)
101
102
103
class
AugmentTopologyAttributes(object):
Callers
1
augment
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected