Struct burn_import::pytorch::PyTorchFileRecorder
source · pub struct PyTorchFileRecorder<PS: PrecisionSettings> { /* private fields */ }
Expand description
A recorder that that loads PyTorch files (.pt
) into Burn modules.
LoadArgs can be used to remap keys or file path. See LoadArgs for more information.
Implementations§
source§impl<PS: PrecisionSettings> PyTorchFileRecorder<PS>
impl<PS: PrecisionSettings> PyTorchFileRecorder<PS>
Trait Implementations§
source§impl<PS: Clone + PrecisionSettings> Clone for PyTorchFileRecorder<PS>
impl<PS: Clone + PrecisionSettings> Clone for PyTorchFileRecorder<PS>
source§fn clone(&self) -> PyTorchFileRecorder<PS>
fn clone(&self) -> PyTorchFileRecorder<PS>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<PS: Debug + PrecisionSettings> Debug for PyTorchFileRecorder<PS>
impl<PS: Debug + PrecisionSettings> Debug for PyTorchFileRecorder<PS>
source§impl<PS: Default + PrecisionSettings> Default for PyTorchFileRecorder<PS>
impl<PS: Default + PrecisionSettings> Default for PyTorchFileRecorder<PS>
source§fn default() -> PyTorchFileRecorder<PS>
fn default() -> PyTorchFileRecorder<PS>
Returns the “default value” for a type. Read more
source§impl<PS: PrecisionSettings, B: Backend> Recorder<B> for PyTorchFileRecorder<PS>
impl<PS: PrecisionSettings, B: Backend> Recorder<B> for PyTorchFileRecorder<PS>
§type RecordArgs = PathBuf
type RecordArgs = PathBuf
Arguments used to record objects.
§type RecordOutput = ()
type RecordOutput = ()
Record output type.
source§fn save_item<I: Serialize>(
&self,
_item: I,
_file: Self::RecordArgs
) -> Result<(), RecorderError>
fn save_item<I: Serialize>( &self, _item: I, _file: Self::RecordArgs ) -> Result<(), RecorderError>
Saves an item. Read more
source§fn load_item<I: DeserializeOwned>(
&self,
_file: Self::LoadArgs
) -> Result<I, RecorderError>
fn load_item<I: DeserializeOwned>( &self, _file: Self::LoadArgs ) -> Result<I, RecorderError>
Loads an item. Read more
Auto Trait Implementations§
impl<PS> RefUnwindSafe for PyTorchFileRecorder<PS>where
PS: RefUnwindSafe,
impl<PS> Send for PyTorchFileRecorder<PS>
impl<PS> Sync for PyTorchFileRecorder<PS>
impl<PS> Unpin for PyTorchFileRecorder<PS>where
PS: Unpin,
impl<PS> UnwindSafe for PyTorchFileRecorder<PS>where
PS: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more