Hi guys, I’m running such code:
                so = self.classifiers[y_predictions[0]].model(inputs)
                self.classifiers[y_predictions[0]].model.train(True)
                soo = self.classifiers[y_predictions[0]].model(inputs)
                self.classifiers[y_predictions[0]].model.train(False)
                sooo = self.classifiers[y_predictions[0]].model(inputs)


self.classifiers[y_predictions[0]].model is the original ResNet18 appended by PyTorch and is used for bin-classification.

image.png1504×112 47.5 KB

I’m confused why so, soo and sooo have different value shown above? Thanks in advance.