numr 0.16.0

Numerical computing and tensor library for Rust, in the role of NumPy: n-dimensional arrays, linear algebra, FFT, statistics and autograd on CPU, CUDA and WebGPU
Documentation
1
2
3
4
5
6
7
8
9
10
//! Shared test helpers for WebGPU linalg unit tests.
#![cfg(test)]

use super::super::{WgpuClient, WgpuDevice, WgpuRuntime};
use crate::runtime::Runtime;

pub(super) fn create_client() -> WgpuClient {
    let device = WgpuDevice::new(0);
    WgpuRuntime::default_client(&device)
}