From 12f0004095a20f50124cd67aa5f4857a3a5ffec0 Mon Sep 17 00:00:00 2001 From: alexmul1114 <96952477+alexmul1114@users.noreply.github.com> Date: Fri, 12 Jan 2024 12:32:28 -0500 Subject: [PATCH] Remove typo --- ext/CUDAExt.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/CUDAExt.jl b/ext/CUDAExt.jl index 0d91761..0dc143b 100644 --- a/ext/CUDAExt.jl +++ b/ext/CUDAExt.jl @@ -19,7 +19,7 @@ function _gcp( T = promote_type(TX, Float32) # Random initialization - M0 = CPD(ones(T, r), rand.(T, size(X), r))X_gpu + M0 = CPD(ones(T, r), rand.(T, size(X), r)) M0norm = sqrt(sum(abs2, M0[I] for I in CartesianIndices(size(M0)))) Xnorm = sqrt(mapreduce(x -> isnan(x) ? 0 : abs2(x), +, X, init=0f0)) for k in Base.OneTo(N)