Open emchristiansen opened 1 year ago
More to the point, is it possible to train models defined in Rust, saved, and then re-loaded?
I've found training to be very slow in Rust with a Rust-defined model, and I was hoping I could trace the Rust-defined model to TorchScript to speed it up.
Please document how to use models created via tracing Rust-defined networks. An end-to-end example showing how to do everything in Rust would be very helpful!
I'm currently attempting to use a Rust-defined network that has been saved using
CModule::save
and loaded usingTrainableCModule::load
, and I'm seeingNaN
s in my output that aren't there otherwise.FYI, if you create a traced model using
examples/jit-trace
and then try to train it usingexamples/jit-train
, you get the error: