aitune.torch.inspecting.inspecting
Inspecting and patching modules.
Module Contents
Functions
Data
API
Reset the timings of the modules.
Warmup the model by running it on a few samples.
Inspect provided callable object searching for nn.Module members executed as part of forward pass.
Returns: InspectedModulesInfo object.
Parameters:
obj
Callable object to inspect.
dataset
List of tuples with batch size and input.
inference_function
Custom inference function to use for inspection, obj is used by default.
number_of_iterations
Number of iterations to run for inference.
warmup_iterations
Number of iterations to run for warmup.
min_depth
Minimum depth of the modules to inspect, if root level modules is not working, try to increase this value
max_depth
Maximum depth of the modules to inspect