modified a variable name
This commit is contained in:
parent
0eb66997fb
commit
e5e8bcb284
5
tools.py
5
tools.py
@ -328,9 +328,8 @@ class TwoHotDistSymlog:
|
||||
self.width = (self.buckets[-1] - self.buckets[0]) / 255
|
||||
|
||||
def mean(self):
|
||||
print("mean called")
|
||||
_mode = self.probs * self.buckets
|
||||
return symexp(torch.sum(_mode, dim=-1, keepdim=True))
|
||||
_mean = self.probs * self.buckets
|
||||
return symexp(torch.sum(_mean, dim=-1, keepdim=True))
|
||||
|
||||
def mode(self):
|
||||
_mode = self.probs * self.buckets
|
||||
|
Loading…
x
Reference in New Issue
Block a user