flâneur — a map of the web's best reading

torch.Tensor.uniform_ — PyTorch 2.12 documentation

docs.pytorch.org · 51 words · saved by 1 readers

By submitting this form, I consent to receive marketing emails from the LF and its projects regarding their events, training, research, developments, and related announcements. I understand that I can unsubscribe at any time using the links in the footers of the emails I receive. Privacy Policy By submitting this form, I consent to receive marketing emails from the LF and its projects regarding their events, training, research, developments, and related announcements. I understand that I can unsubscribe at any time using the links in the footers of the emails I receive. Privacy Policy. © PyTorch. Copyright © The Linux Foundation®. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For more information, including terms of use, privacy policy, and trademark usage, please see our Policies page. Trademark Usage. Privacy Policy. To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow

torch.Tensor.uniform_ # Tensor. uniform_ ( from=0 , to=1 , * , generator=None ) → Tensor # Fills self tensor with numbers sampled from the continuous uniform distribution: f ( x ) = 1 to − from f(x) = \dfrac{1}{\text{to} - \text{from}} f ( x ) = to − from 1 ​

Explore this link on the map →

related reading