MCPcopy 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
99def dropout_feature(x: torch.FloatTensor, drop_prob: float) -> torch.FloatTensor:
100 return F.dropout(x, p=1. - drop_prob)
101
102
103class AugmentTopologyAttributes(object):

Callers 1

augmentMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected