MCPcopy Create free account
hub / github.com/TorchSSL/TorchSSL / Get_Scalar

Class Get_Scalar

models/flexmatch/flexmatch_utils.py:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8
9class Get_Scalar:
10 def __init__(self, value):
11 self.value = value
12
13 def get_value(self, iter):
14 return self.value
15
16 def __call__(self, iter):
17 return self.value
18
19
20def consistency_loss(logits_s, logits_w, class_acc, p_target, p_model, name='ce',

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected