Commit f68cbf1
Use
This reduces the number of unnecessary NumPy array allocations when
feeding values into a TensorFlow session, and can reduce heap
fragmentation.
Fixes tensorflow#2942 (as far as possible). Note that we recommend that you use
tcmalloc when running TensorFlow, as it is less susceptible to heap
fragmentation with mmany large objects.
Change: 125407787numpy.asarray() instead of numpy.array() when converting feeds.1 parent b675e4b commit f68cbf1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
619 | | - | |
| 619 | + | |
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
| |||
0 commit comments