pytorch / pytorch/tutorials

Put some more better practices in custom operator tutorial

Open
#1,203 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C++ torchscript
Dominant language
Python
Stars
9.3k
Forks
4.4k
Avg merge
1d 21h
Merged PRs (30d)
4

Description

Given our experience with internal users of custom operator registration API, there are some more important things the tutorial should cover:

  • Handling non-contiguous inputs
  • How to use TensorIterator for easy pointwise operators
  • (FB only) The rest of the scaffolding you need for fbcode

cc @dzhulgakov

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the custom operator registration API tutorial in the PyTorch tutorials repository and review its existing coverage. Done means the tutorial explains handling non-contiguous inputs, using TensorIterator for pointwise operators, and the additional fbcode scaffolding for Facebook users.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.