(lower, upper, shape, device)
| 205 | |
| 206 | @torch.jit.script |
| 207 | def torch_rand_float(lower, upper, shape, device): |
| 208 | # type: (float, float, Tuple[int, int], str) -> Tensor |
| 209 | return (upper - lower) * torch.rand(*shape, device=device) + lower |
| 210 | |
| 211 | |
| 212 | @torch.jit.script |
no outgoing calls
no test coverage detected