Skip to content

Commit

Permalink
make tests pass + formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
plutonium-239 committed Aug 1, 2024
1 parent d7d6c3b commit 49d0f92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion experiments/visual_abstract/plot_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@

plt.legend()
plt.savefig(
path.join(HEREDIR, f"visual_abstract_{architecture}_{mode}{'_use_compile' if use_compile else ''}.pdf"),
path.join(
HEREDIR,
f"visual_abstract_{architecture}_{mode}{'_use_compile' if use_compile else ''}.pdf",
),
bbox_inches="tight",
)
2 changes: 1 addition & 1 deletion memsave_torch/nn/functional/Conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def backward(ctx, grad_output):
ctx.needs_input_grad[:3],
)

return grad_x, grad_weight, grad_bias, None, None, None, None, None
return grad_x, grad_weight, grad_bias, None, None, None, None, None, None


def convMemSave(
Expand Down

0 comments on commit 49d0f92

Please sign in to comment.