modified a variable name
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user