# Flux vs Tensorflow training performance comparison?

**URL:** <https://discourse.julialang.org/t/flux-vs-tensorflow-training-performance-comparison/32926>\
**Category:** General Usage\
**Tags:** tensorflow, flux, machine-learning\
**Created:** [January 3, 2020, 2:42pm UTC](https://discourse.julialang.org/t/flux-vs-tensorflow-training-performance-comparison/32926 "2020-01-03T14:42:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [January 3, 2020, 4:04pm UTC](https://discourse.julialang.org/t/flux-vs-tensorflow-training-performance-comparison/32926/2 "2020-01-03T16:04:57Z")

</div>

The most recent benchmarks I’ve found have shown Flux a bit faster:

> **[Estadistika](https://estadistika.github.io//julia/python/packages/knet/flux/tensorflow/machine-learning/deep-learning/2019/06/20/Deep-Learning-Exploring-High-Level-APIs-of-Knet.jl-and-Flux.jl-in-comparison-to-Tensorflow-Keras.html)**
>
> statistics, data science, machine/deep learning

though I would expect that not to be the case when deploying to large multi-GPU sessions, which is where TensorFlow shines. Though I do also know of

> **[GitHub - avik-pal/DeepLearningBenchmarks: Benchmarks across Deep Learning...](https://github.com/avik-pal/DeepLearningBenchmarks)**
>
> Benchmarks across Deep Learning Frameworks in Julia and Python - GitHub - avik-pal/DeepLearningBenchmarks: Benchmarks across Deep Learning Frameworks in Julia and Python

[http://denizyuret.github.io/Knet.jl/latest/tutorial/#Benchmarks-1](http://denizyuret.github.io/Knet.jl/latest/tutorial/#Benchmarks-1)

> **[High-Performance GPU Computing in the Julia Programming Language | NVIDIA...](https://developer.nvidia.com/blog/gpu-computing-julia-programming-language/)**
>
> Julia is a high-level programming language for mathematical computing that is as easy to use as Python, but as fast as C. The language has been created with performance in mind…

By all accounts, KNet is one of the fastest out there (and notice the Knet benchmarks were not written or ran by the Knet authors. They weren’t even written/ran by regular Julia users!), and Flux lags a bit behind in some areas, but uses KNet as a goal post. Thus KNet can be used as a bridge to see how Flux compares to KNet which compares to the rest of the world. KNet sacrifices some generality to get there by relying on hardcoded CUDA kernels for many things, so Flux is trying to get “the hardcoded performance” but without relying on hardcoded kernels.

---

_[View the full topic](https://discourse.julialang.org/t/flux-vs-tensorflow-training-performance-comparison/32926)._
