# Machine Learning in Elixir: error thrown in code snippet (page 44)

**URL:** <https://forum.devtalk.com/t/machine-learning-in-elixir-error-thrown-in-code-snippet-page-44/117271>\
**Category:** PragProg Customers\
**Tags:** book-machine-learning-in-elixir, errata\
**Created:** [21 July 2023 05:22 UTC](https://forum.devtalk.com/t/machine-learning-in-elixir-error-thrown-in-code-snippet-page-44/117271 "2023-07-21T05:22:56Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![johnmacshea](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@johnmacshea](https://forum.devtalk.com/u/johnmacshea)\
**Post date:** [21 July 2023 07:55 UTC](https://forum.devtalk.com/t/machine-learning-in-elixir-error-thrown-in-code-snippet-page-44/117271/3 "2023-07-21T07:55:03Z")

</div>

I had the same issue with Benchee - I saw someone mention in the elixir forum that Benchee was crashing the LiveBook cells a while back. I’m also on Apple Silicon - LiveBook v0.9.3, Elixir v1.14.2.

I was curious so:  
{exla\_time, exla\_result} = :timer.tc(fn →   
apply(EXLA.jit(&Softmax.softmax/1), [tensor])  
end)

{standard\_time, standard\_result} = :timer.tc(fn →   
Softmax.softmax(tensor)  
end)

IO.puts “exla is #{standard\_time/exla\_time} times faster”  
result (one run):  
exla is 66.25130208333333 times faster

On multiple runs its between 450 and 500 times faster.

---

_[View the full topic](https://forum.devtalk.com/t/machine-learning-in-elixir-error-thrown-in-code-snippet-page-44/117271)._
