Torch modules cannot be stored with saveRDS() directly. pinn_save()
stores the network weights as plain arrays alongside the rest of the fit,
and pinn_load() rebuilds the network.
Torch modules cannot be stored with saveRDS() directly. pinn_save()
stores the network weights as plain arrays alongside the rest of the fit,
and pinn_load() rebuilds the network.