Albert Garde

Results 10 issues of Albert Garde

Do you think it would be possible to make arrayfire optional? The benefits of arrayfire are enormous, but it also seems like a huge handicap that anyone using the crate...

enhancement

There exists a method for weighted standard deviation, [weighted_std](https://docs.rs/ndarray-stats/latest/ndarray_stats/trait.SummaryStatisticsExt.html#tymethod.weighted_std), but I can't find one for regular unweighted standard deviation. Is there a reason for this?

The bounds on the `by` argument for the methods `BitSlice::shift_start` and `BitSlice::shift_end` are incorrectly documented. The documentation states that "This panics if `by` is not less than `self.len()`." when in...

Fixes #250 I changed the assert message, but it might make more sense to change the assertion itself to `by < len` instead of `by

The static variable `USED_PARALLELISM` is accessed in `has_parallelism_been_used`, and modified in `MaybeParallelIterator::into_maybe_par_iter` and `MaybeParallelBridge::maybe_par_bridge`. All these cases are unsafe because if they are done at the same time from different...

Stale

Fixes #1491 by turning `static mut USED_PARALLELISM: bool` into a `Mutex`, i.e. `static USED_PARALLELISM: Mutex`. This allows the value to be accessed and modified safely and avoids unsoundness. There is...

I am implementing a part of my Python project in Rust. I need to use a tokenizer deep in the Rust code, but I want the Python code to decide...

Stale

Looking at `fid-rs` I can't see why it shouldn't be possible to derive `PartialEq` and `Eq` for all the necessary structs. Is there something I'm missing about how the datastructure...

**Describe the bug** When using `transformer_lens.utils.download_file_from_hf` to download a pickle file I get the following warning from `torch` ``` /home/user/miniconda3/envs/tl-test/lib/python3.10/site-packages/transformer_lens/utils.py:62: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default...

When I open the webpage at `https://google.github.io/tour-of-wgsl/` the code ``` @binding(0) @group(0) var frame : u32; @vertex fn vtx_main(@builtin(vertex_index) vertex_index : u32) -> @builtin(position) vec4f { const pos = array(...