Skip to content

Commit

Permalink
Remove typo
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmul1114 committed Jan 12, 2024
1 parent b72f6e9 commit 12f0004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/CUDAExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 12f0004

Please sign in to comment.