Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3aadb4f

Browse files
committedJun 8, 2021
Change bases condition
1 parent 0af19e6 commit 3aadb4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎ops/loss_landscapes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def get_loss_landscape(model, n_ff, dataset,
4747
model = model.cuda() if gpu else model.cpu()
4848
model = copy.deepcopy(model)
4949
ws0 = copy.deepcopy(model.state_dict())
50-
bases = create_bases(model, gpu) if bases is not None else bases
50+
bases = create_bases(model, gpu) if bases is None else bases
5151
xs = np.linspace(x_min, x_max, n_x)
5252
ys = np.linspace(y_min, y_max, n_y)
5353
ratio_grid = np.stack(np.meshgrid(xs, ys), axis=0).transpose((1, 2, 0))

0 commit comments

Comments
 (0)
Please sign in to comment.