ggerganov / ggml

Tensor library for machine learning
MIT License
11.28k stars 1.05k forks source link

ggml_cont: fix issue with transposed tensors when one dimension is 1 #934

Closed smeso closed 3 months ago

smeso commented 3 months ago

When using multiple threads, it is not enough to check for the tensors to be contiguous for ggml_compute_forward_dup_same_cont to work correctly. The tensors strides also need to match.