Utilities

Average Meter

Implements Average Meter.

class torchflare.utils.average_meter.AverageMeter[source]

Bases: object

Computes and stores the average and current value.

reset()[source]

Method to reset all the internal variables.

update(val, n=1)[source]

Method to update values.

Parameters
  • val – The current values.

  • n – The count.

Seeder

Implements function for seeding.

torchflare.utils.seeder.seed_all(seed: int = 42)[source]

Method to seed the experiment.

Parameters

seed (int) – The value for the seed.