-
-
Save aribornstein/ad4b7ea050f900fe9289b8743f128a1b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Postprocess: | |
def per_batch_transform(self, batch): | |
# logic to postprocess a prediction batch | |
def uncollate(self, batch): | |
# logic to convert a prediction batch into a sequence of predictions | |
def per_sample_transform(self, samples) | |
# logic to postprocess a sequence of predictions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment