pub struct RandomBoolArgs<'a, const N: usize> {
pub y: TensorMut<'a, Bool, N>,
}Expand description
Args bundle for Bernoulli (output is Bool).
Bernoulli runs cuRAND uniform into the caller-provided workspace and
then writes Bool output cells via the bespoke threshold kernel. The
workspace must be at least numel * sizeof(f32) bytes (see
RandomPlan::workspace_size).
Fields§
§y: TensorMut<'a, Bool, N>Output tensor — packed Bool, one byte per cell.
Auto Trait Implementations§
impl<'a, const N: usize> !UnwindSafe for RandomBoolArgs<'a, N>
impl<'a, const N: usize> Freeze for RandomBoolArgs<'a, N>
impl<'a, const N: usize> RefUnwindSafe for RandomBoolArgs<'a, N>
impl<'a, const N: usize> Send for RandomBoolArgs<'a, N>
impl<'a, const N: usize> Sync for RandomBoolArgs<'a, N>
impl<'a, const N: usize> Unpin for RandomBoolArgs<'a, N>
impl<'a, const N: usize> UnsafeUnpin for RandomBoolArgs<'a, N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more