Skip to content

Instantly share code, notes, and snippets.

@aribornstein
Created May 20, 2021 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aribornstein/ad4b7ea050f900fe9289b8743f128a1b to your computer and use it in GitHub Desktop.
Save aribornstein/ad4b7ea050f900fe9289b8743f128a1b to your computer and use it in GitHub Desktop.
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