Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This includes a very short tutorial for how to use PyTorch tensors in pySDC. The tutorial shows how to train a network to the result of an implicit Euler solve in pySDC.
Very much work in progress! I made the datatype slightly more robust. But it's pretty messy, honestly.
numpyhas unary functions that cover basic arithmetic, but I didn't find the tensor counterpart fast enough. So I overloaded some dunder functions such that the communicator attribute is not lost during arithmetic. Not great.I added a test that makes sure the error of the model prediction to the truth is below some threshold. However, the learning is not deterministic, afaik. I chose pretty large tolerances and the test has not failed on me, but it may be flaky. I suggest we don't worry about this now, but keep it in mind and remove if necessary. @aqibrahimbt, any advice?
@danielru, after the workflow is complete, the website is generated as an artifact that you can download. Please have a look if this is good for you. I am not known for making great advertisements...
@pancetta, I am not sure if I did everything correctly with the website. Locally it looked good, but please double check that I added the right files in the right places.