Struct caffe2_serde::PyTorchStreamWriter
source · pub struct PyTorchStreamWriter<W: Write> { /* private fields */ }
Expand description
Implementations§
source§impl<W: Write> PyTorchStreamWriter<W>
impl<W: Write> PyTorchStreamWriter<W>
pub fn finalized(&self) -> bool
pub fn archive_name(&mut self) -> &String
pub fn new(writer_func: &fn(_u0: *const c_void, _u1: usize) -> usize) -> Self
pub fn new_from_filename(file_name: String) -> Self
pub fn setup(&mut self, file_name: &String)
pub fn set_min_version(&mut self, version: u64)
pub fn write_record( &mut self, name: &String, data: *const c_void, size: usize, compress: bool )
pub fn write_end_of_file(&mut self)
pub fn valid(&mut self, what: *const u8, info: *const u8)
pub fn get_all_written_records(&mut self) -> &Vec<String>
Trait Implementations§
Auto Trait Implementations§
impl<W> RefUnwindSafe for PyTorchStreamWriter<W>where W: RefUnwindSafe,
impl<W> Send for PyTorchStreamWriter<W>where W: Send,
impl<W> Sync for PyTorchStreamWriter<W>where W: Sync,
impl<W> Unpin for PyTorchStreamWriter<W>where W: Unpin,
impl<W> UnwindSafe for PyTorchStreamWriter<W>where W: UnwindSafe,
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.