Content
Select dummy output of model’s given or all layers for all-zero tensor of input_size.
input_size
input_size (Sequence[int]) – input size of one sample to feed in (make sure to include batch dimension!)
model (Module) – the model to investigate
layer_ids (Optional[Sequence[str]]) – the layers to investigate; defaults to all listed in the model’s named_modules
named_modules
a dict of the outputs for each layer ID
Dict[str, Any]