huggingface / optimum-quanto

A pytorch quantization backend for optimum
Apache License 2.0
833 stars 62 forks source link

fix: use reshape instead of view #338

Closed dacorvo closed 1 month ago

dacorvo commented 1 month ago

Most of the time, we want the resulting Tensor to be contiguous, so it is better to use reshape to enforce it.

Fixes #327