Skip to content

Commit

Permalink
add multiplication by constant for gradU sym case
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmul1114 committed Nov 26, 2024
1 parent 3509af3 commit 0739a38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gcp-losses.jl
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ function grad_U!(
for j in 1:K
if sym_data
mttkrp!(GU[j], Y, tuple([M.U[k] for k in M.S]...), findall(M.S .== j)[1])
rmul!(GU[j], count(M.S .== j))
else
for (index, mode) in enumerate(findall(M.S .== j))
if index == 1
Expand Down

0 comments on commit 0739a38

Please sign in to comment.