Lines Matching full:low
18 ``[low, high)``.
28 low (float or Tensor): lower range (inclusive).
33 "low": constraints.dependent(is_discrete=False, event_dim=0),
40 return (self.high + self.low) / 2
48 return (self.high - self.low) / 12**0.5
52 return (self.high - self.low).pow(2) / 12
54 def __init__(self, low, high, validate_args=None): argument
55 self.low, self.high = broadcast_all(low, high)
57 if isinstance(low, Number) and isinstance(high, Number):
60 batch_shape = self.low.size()
63 if self._validate_args and not torch.lt(self.low, self.high).all():
64 raise ValueError("Uniform is not defined when low>= high")
69 new.low = self.low.expand(batch_shape)
77 return constraints.interval(self.low, self.high)
81 rand = torch.rand(shape, dtype=self.low.dtype, device=self.low.device)
82 return self.low + rand * (self.high - self.low)
87 lb = self.low.le(value).type_as(self.low)
88 ub = self.high.gt(value).type_as(self.low)
89 return torch.log(lb.mul(ub)) - torch.log(self.high - self.low)
94 result = (value - self.low) / (self.high - self.low)
98 result = value * (self.high - self.low) + self.low
102 return torch.log(self.high - self.low)