MCPcopy Create free account
hub / github.com/buaacxf/VIPTR / __init__

Method __init__

modules/SVTR.py:71–74  ·  view source on GitHub ↗
(self, local_rank, drop_prob=None)

Source from the content-addressed store, hash-verified

69 """
70
71 def __init__(self, local_rank, drop_prob=None):
72 super(DropPath, self).__init__()
73 self.drop_prob = drop_prob
74 self.local_rank = local_rank
75
76 def forward(self, x):
77 return drop_path(x, self.local_rank, self.drop_prob, self.training)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected