Commit 160d3ad
Fix losses and aggregators when using CUDA graphs (#280)
* Pass step as scalar tensor for CUDA graph compatability
Signed-off-by: Jason Ye <jasonyecanada@gmail.com>
* Update turbulent channel example aggregator for CUDA graphs
Signed-off-by: Jason Ye <jasonyecanada@gmail.com>
* Update aggregator tests
Signed-off-by: Jason Ye <jasonyecanada@gmail.com>
* Fix formatting issues
* Fix formatting issues
* Fix formatting issues
Refactor forward method signature for better readability.
* Fix formatting issues
---------
Signed-off-by: Jason Ye <jasonyecanada@gmail.com>
Co-authored-by: Kaustubh Tangsali <71059996+ktangsali@users.noreply.github.com>1 parent a863d0d commit 160d3ad
File tree
11 files changed
+187
-132
lines changed- examples/turbulent_channel
- 2d_std_wf
- 2d
- physicsnemo/sym
- loss
- test/test_aggregator
11 files changed
+187
-132
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | | - | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | | - | |
58 | | - | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | | - | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | | - | |
58 | | - | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
0 commit comments