[feature request] more extensive examples

Aperta
#19 4 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp, python
Ambito
documentation

Direzione di ricerca

The existing example in this repo takes only at::Tensor arguments, so start from its C++ source and its pybind11 binding in setup.py. Add examples that accept at::Scalar and an int-list argument, and check how the binding exposes them to Python. Done means each new example builds, can be called from Python with the new input types, and has a short note explaining the mapping.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

It would be nice if there were more examples and especially examples with different types of inputs. Currently, the only input type is at::Tensor, but what about the other types? Specifically, I had a lot of trouble using at::Scalar and at::IntList as an input and instead used int and std::vector<int>. This might be an issue with pybind11 rather than pytorch extensions specifically, but for users with limited knowledge of pybind11 and aten, examples can be very helpful.

Lingua principale
Python
Stelle
1.2k
Fork
250
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pytorch/extension-cpp

Tutte le issue di pytorch/extension-cpp

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.