-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release of pyqtorch v1.0.0: Adjoint Differentiation Support (#122)
Full remake of pyqtorch using a slim version of the former modules API
- Loading branch information
1 parent
2be68aa
commit 647a7b4
Showing
58 changed files
with
1,440 additions
and
8,653 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from __future__ import annotations | ||
|
||
from io import StringIO | ||
|
||
from matplotlib.figure import Figure | ||
|
||
|
||
def fig_to_html(fig: Figure) -> str: | ||
buffer = StringIO() | ||
fig.savefig(buffer, format="svg") | ||
return buffer.getvalue() |
Oops, something went wrong.