Tensor.tensorOf methods can return unzeroed memory
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- java
- Ambito
- machine-learning
Direzione di ricerca
Iniziare con Tensor.of(Class, Shape, long) e Tensor.of(Class, Shape), quindi riprodurre il problema usando TFloat32.tensorOf(Shape.of(2,2)). Verificare che i tensori appena creati contengano solo zeri, inclusi i tensori creati tramite i metodi tensorOf correlati, e aggiungere o eseguire un controllo di regressione se il codice circostante ne fornisce uno.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
System information
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yep
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS
- TensorFlow installed from (source or binary): binary
- TensorFlow version (use command below): 0.3.1
Describe the current behavior
Tensor.of(Class,Shape,long) and Tensor.of(Class,Shape) return a Tensor which has not been zeroed. This is used by the various tensorOf methods on things like TFloat32.
Describe the expected behavior
Tensors should be initialised to be all zero the same way any other Java object is.
Code to reproduce the issue
Run TFloat32.tensorOf(Shape.of(2,2)) and you'll likely get some junk in there. I was allocating things (16,10) but the size is irrelevant.
I was building a one hot vector to use as the target for a training run, and I expected to get an all zero tensor back, so I only set the 1s. The model was very confused by the true labels having NaNs in.
- Lingua principale
- Java
- Stelle
- 928
- Fork
- 227
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di tensorflow/java
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
tensorflow/java#653 · 1 commento · 4 reazioni ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
tensorflow/java#621 · 4 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
tensorflow/java#617 · 3 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
tensorflow/java#615 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
tensorflow/java#614 · 1 commento ·
Tutte le issue di tensorflow/java
Issue simili
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Cannot differ own consent and managed consents in My Consents view and detailed consent view. Aperta1.0.0-alpha2 Type/Improvement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
wso2/dpdp-accelerator#272 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
apache/rocketmq-dashboard#4860 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
infinispan/infinispan#18150 ·