```julia using StatsBase, CUDA x=cu(rand(30,10)) weights=Weights(cu(rand(10)) mean(x, weights, dims=2) ``` Throws an `ERROR: Scalar indexing is disallowed.`