Querstion about the tutorial 23.learning.ipynb

9 views
Skip to first unread message

Burak Acar

unread,
Jul 10, 2019, 3:47:52 AM7/10/19
to knet-users
Hi,
I am trying to familiarise myself with Julia and Knet. Having followed some Julia tutorials, I started the Knet tutorials. Here is a quick question:

The first cell in tutorial notebook "23.learning.ipynb" has the following lines:

Base.argmax(a::KnetArray) = argmax(Array(a))
Base.argmax(a::AutoGrad.Value) = argmax(value(a))

What are they for? Are these redefinitions of argmax when the input type is KnetArray and AutoGrad.Value?

And, what is the following line for?

ENV["COLUMNS"] = 72

Deniz Yuret

unread,
Jul 10, 2019, 6:05:12 AM7/10/19
to Burak Acar, knet-users


On Wed, Jul 10, 2019, 10:47 AM Burak Acar <burak...@gmail.com> wrote:
Hi,
I am trying to familiarise myself with Julia and Knet. Having followed some Julia tutorials, I started the Knet tutorials. Here is a quick question:

The first cell in tutorial notebook "23.learning.ipynb" has the following lines:

Base.argmax(a::KnetArray) = argmax(Array(a))
Base.argmax(a::AutoGrad.Value) = argmax(value(a))

What are they for? Are these redefinitions of argmax when the input type is KnetArray and AutoGrad.Value?

yes.


And, what is the following line for?

ENV["COLUMNS"] = 72

controls the number of columns in display.


--
You received this message because you are subscribed to the Google Groups "knet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to knet-users+...@googlegroups.com.
To post to this group, send email to knet-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/knet-users/3899f2d7-7608-44dd-a999-716469e3a1c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages