# Knet questions

**URL:** <https://discourse.julialang.org/t/knet-questions/5716>\
**Category:** Machine Learning\
**Created:** [September 4, 2017, 8:36pm UTC](https://discourse.julialang.org/t/knet-questions/5716 "2017-09-04T20:36:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phil\_Tomson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/phil_tomson/32/3575_2.png) [@Phil\_Tomson](https://discourse.julialang.org/u/Phil_Tomson)\
**Post date:** [September 4, 2017, 8:36pm UTC](https://discourse.julialang.org/t/knet-questions/5716/1 "2017-09-04T20:36:59Z")

</div>

Unfortunately, the knet.jl intro video from the 2017 Julia Conf seems to be missing audio for at least half of the talk…

One thing I noticed was that there was a slide that defined a function using an @knet macro:

@knet function f(x1,x2)  
return relu(x1) + x1.\*x2 - soft(x2)  
end

But when I tried this in the REPL:

julia\> using Knet  
julia\> @knet function f(x1,x2)  
return relu(x1) + x1.\*x2 - soft(x2)  
end  
ERROR: UndefVarError: @knet not defined

Is the @knet macro deprecated? If so what is used now?

---

<div class="post-metadata">

**Author:** ![Paethon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paethon/32/9278_2.png) [@Paethon](https://discourse.julialang.org/u/Paethon)\
**Post date:** [September 8, 2017, 11:28am UTC](https://discourse.julialang.org/t/knet-questions/5716/2 "2017-09-08T11:28:24Z")

</div>

That part of the video shows what you had to do in Knet7, which used static computational graphs. It does not apply to Knet8 which uses AutoGrad and dynamic computational graphs.

---

<div class="post-metadata">

**Author:** ![vipstar](https://avatars.discourse-cdn.com/v4/letter/v/6de8d8/32.png) [@vipstar](https://discourse.julialang.org/u/vipstar)\
**Post date:** [September 26, 2017, 7:42pm UTC](https://discourse.julialang.org/t/knet-questions/5716/3 "2017-09-26T19:42:37Z")

</div>

Knet has extensive documentation and you should be using them. [Home · Knet.jl](http://denizyuret.github.io/Knet.jl/latest/) [https://github.com/denizyuret/Knet.jl](https://github.com/denizyuret/Knet.jl)
