MCPcopy Create free account
hub / github.com/Chain123/Meta-HAR / __init__

Method __init__

utils.py:96–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94
95class pairwiseloss_global(torch.nn.Module):
96 def __init__(self):
97 super(pairwiseloss_global, self).__init__()
98
99 def forward(self, embed, target, chunk_size, global_center=None, beta=2.0, Expand=10):
100 # Expand=10 equals to the temperature=0.1 in a commonly used temperature based formula.

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected