arrayfire / arrayfire/arrayfire-python

timeit error in example convolve.py

Aperta
#225 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
422
Fork
63
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

When I run the convolve.py

I met a error with timeit function
![image](https://user-images.githubusercontent.com/30900789/78571195-83170300-7858-11ea-8bcc-fea5b1d64c52.png)
I will get sample_time= 0 after sample_trials=3.So It will bring a ZeroDivisionError.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by running the convolve.py example and inspect its timeit usage around sample_time and sample_trials. Confirm the example no longer reaches a ZeroDivisionError when sample_time is 0 and that it reports a valid timing result.

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

Valutazione

Stack tecnologico
python
Ambito
developer-experience
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.