pub type SharedCudaTrainer = Rc<RefCell<CudaTransformerTrainer>>;Expand description
Shared mutable ownership of a GPU-resident trainer. Both
CudaRealStepFn (train steps) and CudaRealValFn (eval) clone
this Rc so the three hooks see the same GPU memory.
Aliased Typeยง
pub struct SharedCudaTrainer { /* private fields */ }