benchmark#

(s3prl.util.benchmark)

Benchmark the timing a block of code

Authors
  • Leo 2022

benchmark#

class s3prl.util.benchmark.benchmark(name: str, freq: int = 1)[source][source]#

Bases: ContextDecorator