From 92ed504a8f64105c3da938074e504140bd389b8d Mon Sep 17 00:00:00 2001 From: ishaan-arora-1 Date: Mon, 23 Feb 2026 18:44:26 +0530 Subject: [PATCH] Fix uniform_lpdf OpenCL restriction indices --- src/stan_math_backend/Transform_Mir.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stan_math_backend/Transform_Mir.ml b/src/stan_math_backend/Transform_Mir.ml index 6d5edeeee..322d33917 100644 --- a/src/stan_math_backend/Transform_Mir.ml +++ b/src/stan_math_backend/Transform_Mir.ml @@ -151,7 +151,7 @@ let opencl_trigger_restrictions = ; ( "uniform_lpdf" , [ [ (0, UnsizedType.AutoDiffable, UnsizedType.UVector) ; (1, UnsizedType.DataOnly, UnsizedType.UReal) - ; (1, UnsizedType.DataOnly, UnsizedType.UReal) ] ] ) ] + ; (2, UnsizedType.DataOnly, UnsizedType.UReal) ] ] ) ] let opencl_supported_functions = [ "bernoulli_lpmf"; "bernoulli_logit_lpmf"; "bernoulli_logit_glm_lpmf"