Beispiel #1
0
 def result(self):
     if self.local_mirrored_blob_ is not None:
         return self.local_mirrored_blob_
     local_blob_list = [x.result for x in self.sub_pullers_]
     self.local_mirrored_blob_ = local_blob_util.MergeLocalBlobs(
         local_blob_list, self.mirrored_blob_)
     return self.local_mirrored_blob_
Beispiel #2
0
 def HandlerParallelIdAndLocalBlob(parallel_id, local_blob):
     assert parallel_id not in parallel_id2consistent_local_blob
     parallel_id2consistent_local_blob[parallel_id] = local_blob
     if len(parallel_id2consistent_local_blob) != len_sub_remote_blobs:
         return
     local_blob_list = [
         parallel_id2consistent_local_blob[parallel_id]
         for i in range(len_sub_remote_blobs)
     ]
     local_blob = local_blob_util.MergeLocalBlobs(local_blob_list,
                                                  blob_watched)
     handler(oft_util.TransformWatchedBlob(local_blob, handler))