easy-wgpu 0.9.0

Small wrapper around wgpu for easy use with gloss-rs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[cfg(feature = "burn-torch")]
#[derive(Debug, thiserror::Error)]
pub enum CudaInteropError {
    #[error("Tensor must be 4D (N,C,H,W), but got {0} dimensions")]
    InvalidTensorDim(usize),
    #[error("Provided tensor has to be have only one batch but it has first dim as {0}")]
    InvalidBatchSize(usize),
    #[error("Nr channels has to be 4 or less but it has {0} channels")]
    InvalidChannelSize(usize),
    #[error("Interop not allowed for tensor of type {0:?}")]
    InvalidTensorType(tch::Kind),
    #[error("Tensor has to be contiguous in memory")]
    InvalidNonContiguous,
}