Skip to content

Commit

Permalink
More minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gtikhonov committed Dec 4, 2023
1 parent 7724142 commit c92c475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hmsc/updaters/updateZ.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def updateZ(params, data, rLHyperparams, *,
Pi = data["Pi"]
distr = data["distr"]

if X.ndim == 2:
if len(X.shape.as_list()) == 2: #tf.rank(X) X.ndim == 2:
LFix = tf.matmul(X, Beta)
else:
LFix = tf.einsum("jik,kj->ij", X, Beta)
Expand Down

0 comments on commit c92c475

Please sign in to comment.