Skip to content

Commit

Permalink
Promote to at least Float64 in init for now
Browse files Browse the repository at this point in the history
  • Loading branch information
dahong67 committed Mar 5, 2024
1 parent 774dc56 commit bafb1bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/GCPDecompositions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ default_init(X, r, loss, constraints, algorithm) =
function default_init(rng, X, r, loss, constraints, algorithm)
# Generate CPD with random factors
T, N = nonmissingtype(eltype(X)), ndims(X)
T = promote_type(T, Float64)
M = CPD(ones(T, r), rand.(rng, T, size(X), r))

# Normalize
Expand Down

0 comments on commit bafb1bb

Please sign in to comment.