Struct caffe2op_loadsave::CheckpointOp
source · pub struct CheckpointOp<Context> { /* private fields */ }
Expand description
| CheckpointOp is a wrapper over a SaveFloatTensorOp | that basically allows flexible naming | over iterations. | | The file pattern in db_name should be | a format string that can be passed into | sprintf with an int argument specifying | the current iteration. An example: | “/path/to/my/checkpoint/checkpoint_at_%d.pb” | | The Checkpoint operator is similar | to the Save operator, but allows one | to save to db every few iterations, with | a db name that is appended with the iteration | count. It takes [1, infinity) number | of inputs and has no output. The first | input has to be a TensorCPU of type int | and has size 1 (i.e. the iteration counter). | This is determined whether we need to | do checkpointing. |
Implementations§
source§impl<Context> CheckpointOp<Context>
impl<Context> CheckpointOp<Context>
Auto Trait Implementations§
impl<Context> !RefUnwindSafe for CheckpointOp<Context>
impl<Context> !Send for CheckpointOp<Context>
impl<Context> !Sync for CheckpointOp<Context>
impl<Context> Unpin for CheckpointOp<Context>where Context: Unpin,
impl<Context> !UnwindSafe for CheckpointOp<Context>
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.