Conversation
db56049 to
179eb3f
Compare
|
Hi @tztsai ad0be72 seems to revert a few of the changes you made as part of #53 ? Also, whilst sometimes necessary I would caution against getting into the habit of regular force-pushing, and also encourage you to use I wonder if it is worth starting a new PR inspired by this one (or using cherry-picks from this branch) as @ElliottKasoar branched this off of #44 which has changed a lot since. and resolving all the conflicts could get very messy. |
There was some syntax error in |
|
@tztsai a lot of the conflicts here are in files that do not directly relate to this PR. (e.g. in CAM_mods)
I think if you look at Elliott's commits (not mine) from the PR you'll see this is what they cover. Let me know if you want to discuss this in more detail. |
|
I see you are targeting I have already merged your updates to |
I didn't choose |
I didn't suggest targeting Let's meet to discuss this at some point this week so we can clear things up. |
|
@tztsai please could you pause work on this for now. |
Currently based off cam-interface, this primarily creates a new pair of Fortran files that mirror
nn_cf_net,nn_convection flux, integrating the PyTorch implementation of the neural network via FTorch.test.f90 has also been updated to call each function from the original and new (
..._torch.f90) files, checking that the outputs match for a dummy input.More work could be done on the Python implementation, but pt2ts.py, based on the FTorch utils version, has been used to save the model, with the main addition being functionality to read the current netCDF file used to store model weights and convert this to a pickled file.
Also includes a starting point for cmake/make files (i.e. both build for me, although potentially requiring different input file paths), to allow the tests to link to the FTorch and netCDF libraries.