示例#1
0
 def __init__(
     self,
     all_checkpointers: List[BaseCheckpointer] = None,
 ):
     BaseStep.__init__(self)
     ResumableStepMixin.__init__(self)
     IdentityHandlerMethodsMixin.__init__(self)
     self.all_checkpointers = all_checkpointers
示例#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 = []
示例#3
0
 def __init__(self, wrapped: BaseStep):
     BaseStep.__init__(self)
     MetaStepMixin.__init__(self, wrapped)
     ResumableStepMixin.__init__(self)
示例#4
0
 def __init__(self, force_checkpoint_name: str = None):
     ResumableStepMixin.__init__(self)
     BaseStep.__init__(self)
     self.force_checkpoint_name = force_checkpoint_name
示例#5
0
 def __init__(self, wrapped: BaseTransformer):
     MetaStep.__init__(self, wrapped)
     ResumableStepMixin.__init__(self)