# Errors running the new julialang.org blog post

**URL:** <https://discourse.julialang.org/t/errors-running-the-new-julialang-org-blog-post/71074>\
**Category:** New to Julia\
**Created:** [November 7, 2021, 1:06am UTC](https://discourse.julialang.org/t/errors-running-the-new-julialang-org-blog-post/71074 "2021-11-07T01:06:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![conalbrown](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/conalbrown/32/30423_2.png) [@conalbrown](https://discourse.julialang.org/u/conalbrown)\
**Post date:** [November 7, 2021, 1:06am UTC](https://discourse.julialang.org/t/errors-running-the-new-julialang-org-blog-post/71074/1 "2021-11-07T01:06:44Z")

</div>

Hello

I’m trying to run the code from the latest [Julialang.org](http://Julialang.org) blog  
[Composability in Julia: Implementing Deep Equilibrium Models via Neural ODEs](https://julialang.org/blog/2021/10/DEQ/)

# Composability in Julia: Implementing Deep Equilibrium Models via Neural ODEs

### 21 October 2021 | Qiyao Wei, Frank Schäfer, Avik Pal, Chris Rackauckas

I’ve added the packages, pasted the code into VS Code and tried to run it.

The code gives me an error on the following lines:  
Flux.train!(loss, Flux.params(deq), ((X, Y),), opt)  
model, train\_loader, test\_loader = train(batchsize = 128, epochs = 1);

The error I get is for both lines:  
Returns:ERROR: TypeError: non-boolean (Nothing) used in boolean context

Where do I start trying to resolve this? I can see 3 places to start:

1. I’m making a newbie error with my Julia set up
2. I’ve not got the right packages or package versions installed
3. There is a typo in the code

If it is is the latter think it might have something to do with there being nothing after the comma here: ((X, Y),)

I’ve upgraded to 1.6.3 and updated all of my packages.  
The last blog post with the fish animation worked ok.

Thanks

---

<div class="post-metadata">

**Author:** ![ArchieCall](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/archiecall/32/206_2.png) [@ArchieCall](https://discourse.julialang.org/u/ArchieCall)\
**Post date:** [November 7, 2021, 7:08am UTC](https://discourse.julialang.org/t/errors-running-the-new-julialang-org-blog-post/71074/2 "2021-11-07T07:08:26Z")

</div>

I am also getting this same error. My system is Julia 1.6.3 and Windows 10 without a GPU.

Since I have no GPU, the CUDA calls were removed throughout the script. The original script runs properly on Google Colab which has a GPU.

---

<div class="post-metadata">

**Author:** ![albheim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/albheim/32/34660_2.png) [@albheim](https://discourse.julialang.org/u/albheim)\
**Post date:** [November 7, 2021, 10:00am UTC](https://discourse.julialang.org/t/errors-running-the-new-julialang-org-blog-post/71074/3 "2021-11-07T10:00:37Z")

</div>

That line seems to work for me with a GPU, didn’t try on a cpu. There seemed to be a for loop statement missing for the plotting later, but otherwise it seemed fine.

---

<div class="post-metadata">

**Author:** ![ArchieCall](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/archiecall/32/206_2.png) [@ArchieCall](https://discourse.julialang.org/u/ArchieCall)\
**Post date:** [November 7, 2021, 3:21pm UTC](https://discourse.julialang.org/t/errors-running-the-new-julialang-org-blog-post/71074/4 "2021-11-07T15:21:17Z")

</div>

I tried a many different variations of the line in question:  
`Flux.train!(loss, Flux.params(deq), ((X, Y),), opt)`

It is either something with that line, or an incompatibility with the packages being used when you do not have a GPU.

---

<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:** [November 7, 2021, 3:43pm UTC](https://discourse.julialang.org/t/errors-running-the-new-julialang-org-blog-post/71074/5 "2021-11-07T15:43:14Z")

</div>

@avikpal ?

---

<div class="post-metadata">

**Author:** ![conalbrown](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/conalbrown/32/30423_2.png) [@conalbrown](https://discourse.julialang.org/u/conalbrown)\
**Post date:** [November 7, 2021, 7:25pm UTC](https://discourse.julialang.org/t/errors-running-the-new-julialang-org-blog-post/71074/6 "2021-11-07T19:25:55Z")

</div>

Sorry, I should have said. I am also running Windows 10 without a GPU.
