ImagenetTraining-imagenet-1k-random-20.0-frac-1over2
/
pytorch-image-models
/timm
/data
/readers
/shared_count.py
from multiprocessing import Value | |
class SharedCount: | |
def __init__(self, epoch: int = 0): | |
self.shared_epoch = Value('i', epoch) | |
def value(self): | |
return self.shared_epoch.value | |
def value(self, epoch): | |
self.shared_epoch.value = epoch | |