mirror of
https://github.com/ollama/ollama.git
synced 2026-07-30 17:38:02 -04:00
Adding/Multiplying a tensor by a scalar w/ a different data type can cause the tensor to be promoted and cause performance issues. This change adds several guards against over-promotion.