keras.utils.Sequence类
num_classes = 10class AnchorPositivePairs(keras.utils.Sequence): def __init__(self, num_batchs): self.num_batchs = num_batchs def __len__(self): return self.num_batchs def __getitem__(self, _idx): x = np.empty((2, .