We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue initially raised in #2923
burn/crates/burn-ndarray/src/backend.rs
Line 11 in e53978f
burn/crates/burn-cubecl/src/backend.rs
Line 12 in e53978f
After some discussions, the RNG should probably be per-device.
pub trait Backend { /// Device type. type Device: DeviceOps; /// Seed the backend device. fn seed(seed: u64, device: &Self::Device); }
For ndarray specifically, given that the only device is CPU we can probably just make sure it is thread-local
thread_local! { pub(crate) static SEED: RefCell<Option<StdRng>> = RefCell::new(None); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue initially raised in #2923
burn/crates/burn-ndarray/src/backend.rs
Line 11 in e53978f
burn/crates/burn-cubecl/src/backend.rs
Line 12 in e53978f
After some discussions, the RNG should probably be per-device.
For ndarray specifically, given that the only device is CPU we can probably just make sure it is thread-local
The text was updated successfully, but these errors were encountered: