Beispiel #1
0
 def __init__(
     self,
     all_checkpointers: List[BaseCheckpointer] = None,
 ):
     BaseStep.__init__(self)
     ResumableStepMixin.__init__(self)
     IdentityHandlerMethodsMixin.__init__(self)
     self.all_checkpointers = all_checkpointers
Beispiel #2
0
    def __init__(self, wrapped: BaseTransformer, then_unflatten: bool = True):
        MetaStep.__init__(self, wrapped)
        ResumableStepMixin.__init__(self)
        ForceHandleMixin.__init__(self)

        self.then_unflatten = then_unflatten

        self.len_di = []
        self.len_eo = []
Beispiel #3
0
 def __init__(self, wrapped: BaseStep):
     BaseStep.__init__(self)
     MetaStepMixin.__init__(self, wrapped)
     ResumableStepMixin.__init__(self)
Beispiel #4
0
 def __init__(self, force_checkpoint_name: str = None):
     ResumableStepMixin.__init__(self)
     BaseStep.__init__(self)
     self.force_checkpoint_name = force_checkpoint_name
Beispiel #5
0
 def __init__(self, wrapped: BaseTransformer):
     MetaStep.__init__(self, wrapped)
     ResumableStepMixin.__init__(self)