[−][src]Struct auto_diff::rand::RNG
Methods
impl RNG
[src]
pub fn new() -> RNG
[src]
pub fn set_seed(&mut self, seed: u64)
[src]
pub fn bernoulli()
[src]
pub fn cauchy()
[src]
pub fn exponential()
[src]
pub fn geometric()
[src]
pub fn log_normal()
[src]
pub fn normal(&mut self, dim: &[usize], mean: f32, std: f32) -> Tensor
[src]
pub fn uniform<F>(dim: &[usize], from: F, to: F) -> Tensor where
F: Float,
[src]
F: Float,
pub fn normal_(&mut self, o: &Tensor, mean: f32, std: f32)
[src]
pub fn uniform_(&mut self, o: &Tensor, from: f32, to: f32)
[src]
Auto Trait Implementations
impl RefUnwindSafe for RNG
impl Send for RNG
impl Sync for RNG
impl Unpin for RNG
impl UnwindSafe for RNG
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,