Thanks for suggestion, but the solution is not working . I’ve added an update of self.pmean, self.pscale, self.smean in Call using tf.keras.backend.update but they are not updated when I change the values of the global vars.