Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tensorpack/coupled.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def normalize_factors(self, method="max"):
for mmode in self.modes:
sol = self.x["_" + mmode]
if method == "max": # the one with maximum absolute value
norm_vec = np.array([max(sol[:, ii].min(), sol[:, ii].max(), key=abs) for ii in range(sol.shape[1])])
norm_vec = abs(sol).max(axis=0).to_numpy()
elif method == "norm":
norm_vec = norm(sol, axis=0)
else:
Expand Down
Loading