mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	vulkan: predicate max operation in soft_max shaders/soft_max (#10437)
Fixes #10434
This commit is contained in:
		| @@ -73,7 +73,9 @@ void soft_max(uint num_iters) { | |||||||
|  |  | ||||||
|         FLOAT_TYPE v = a * p.scale + slope * b; |         FLOAT_TYPE v = a * p.scale + slope * b; | ||||||
|  |  | ||||||
|  |         if (col < p.KX) { | ||||||
|             max_val = max(max_val, v); |             max_val = max(max_val, v); | ||||||
|  |         } | ||||||
|  |  | ||||||
|         if (idx < DATA_CACHE_SIZE) { |         if (idx < DATA_CACHE_SIZE) { | ||||||
|             data_cache[idx] = v; |             data_cache[idx] = v; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jeff Bolz
					Jeff Bolz