Skip to content

Docs: Missing docstring for apply_for_scriptable_torch function - #434

Open
kumburovicbranko682-boop wants to merge 1 commit into
arogozhnikov:mainfrom
kumburovicbranko682-boop:contribai/docs/missing-docstring-for-apply-for-scriptab
Open

Docs: Missing docstring for apply_for_scriptable_torch function#434
kumburovicbranko682-boop wants to merge 1 commit into
arogozhnikov:mainfrom
kumburovicbranko682-boop:contribai/docs/missing-docstring-for-apply-for-scriptab

Conversation

@kumburovicbranko682-boop

Copy link
Copy Markdown

Problem

The public function apply_for_scriptable_torch lacks a docstring. This function is part of the torch.jit.script integration and users may need to understand its purpose and parameters for custom scripting scenarios.

Severity: medium
File: einops/_torch_specific.py

Solution

Add a docstring explaining the function's purpose, parameters, return type, and usage context with torch.jit.script.

Changes

  • einops/_torch_specific.py (modified)

Testing

  • Existing tests pass
  • Manual review completed
  • No new warnings/errors introduced

The public function apply_for_scriptable_torch lacks a docstring. This function is part of the torch.jit.script integration and users may need to understand its purpose and parameters for custom scripting scenarios.

Affected files: _torch_specific.py

Signed-off-by: kumburovicbranko682-boop <295886834+kumburovicbranko682-boop@users.noreply.github.com>
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