Skip to content
Discussion options

You must be logged in to vote

I notice that the validation_step_end() and test_step_end() functions in dp.py script are:

def validation_step_end(output):
       return self.reduce(output)

def test_step_end(output):
       return self.reduce(output)

Thus, overwrite these two methods as follows will disable the automatic reduce in evaluation and test:

def validation_step_end(output):
       return output

def test_step_end(output):
       return output

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stdoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment