pub trait ModuleIO {
// Required methods
fn save(self, path: impl AsRef<Path>) -> Result<(), ZyxError>;
fn load(self, path: impl AsRef<Path>) -> Result<(), ZyxError>;
}Expand description
This trait is implemented automatically for all modules that implement IntoIterator<Item = &mut Tensor>
Required Methods§
Object Safety§
This trait is not object safe.