Skip to content

Fix Conv3d docstring argument order (padding before dilation)#3793

Open
Pablosinyores wants to merge 1 commit into
ml-explore:mainfrom
Pablosinyores:fix/conv3d-docstring-arg-order
Open

Fix Conv3d docstring argument order (padding before dilation)#3793
Pablosinyores wants to merge 1 commit into
ml-explore:mainfrom
Pablosinyores:fix/conv3d-docstring-arg-order

Conversation

@Pablosinyores

Copy link
Copy Markdown
Contributor

The Conv3d docstring lists the constructor arguments as stride, dilation, padding, but the actual signature order is stride, padding, dilation — matching Conv1d and Conv2d.

A caller who follows the docstring order with positional arguments (e.g. nn.Conv3d(3, 16, 3, 1, 2) intending dilation=2) would instead set padding=2. Conv3d was the lone outlier here; Conv1d and Conv2d both document stride -> padding -> dilation.

Reorders the Conv3d docstring so padding precedes dilation, matching the signature and the sibling conv layers. Documentation-only, no behavior change.

The Conv3d docstring listed the constructor arguments as stride, dilation,
padding, but the signature order is stride, padding, dilation (matching
Conv1d and Conv2d). A caller following the docstring with positional
arguments would swap padding and dilation. Reorder the docstring to match
the signature and the Conv1d/Conv2d docstrings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant