executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
layers-and-componentsUse timm reusable layers, classifier heads, pooling, normalization, attention/drop modules, patch embeddings, and feature-extraction wrappers when building or validating custom models.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a task asks an agent to assemble custom timm-style model pieces, validate tensor shapes through reusable layers, replace classifier heads or pooling, configure normalization/activation/drop modules, use PatchEmbed, or wrap a model for feature extraction.
from timm.layers import PatchEmbed, ClassifierHead, SelectAdaptivePool2d, DropPath.NCHW; PatchEmbed(flatten=True) returns NLC; PatchEmbed(output_fmt='NHWC') returns channel-last spatial output.ClassifierHead(in_features, num_classes, pool_type='avg') for NCHW feature maps and set num_classes=0 when the caller wants pre-classifier features.SelectAdaptivePool2d(pool_type='avg'|'max'|'avgmax'|'catavgmax', flatten=True) when a custom head needs global pooling; remember catavgmax doubles channels.features_only=True, out_indices, output_stride, and model.feature_info for normal backbone feature maps; use forward_intermediates() only for families that expose it.python sub-skills/layers-and-components/scripts/layer_component_probe.py from the skill root, or copy it into a project, for a no-download component shape smoke check.references/layers-api.md.references/custom-model-components.md.references/troubleshooting.md.create_model, pretrained configs, or model registry behavior: route to ../model-library/.../data-pipelines/.../training-workflows/.timm.layers imports; timm.models.layers is a deprecated compatibility path.feature_info with num_chs, reduction, and module when wrapping your own network.NCHW, NHWC, and NLC silently; choose the component's input_fmt/output_fmt explicitly when leaving the default layout.pretrained=True; reusable layer validation should work on random tensors without downloads.