Timing Decorator for Inference
Interview insights are lockedSee how often this is asked and which companies asked it with Buncho Pro.You have several model-inference functions and want to log how long each call takes without repeating timing code in every one.
What is a decorator? Write one that times a function and explain why functools.wraps is used.