You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I followed this tutorial for installation of Knet. The tests are OK, but first example does not work:
julia> Pkg.add("Knet")
INFO: Installing AutoGrad v0.0.4
INFO: Installing Knet v0.8.1
INFO: Building Knet
make: 'libknet8.so' is up to date.
INFO: Package database updated
julia> Pkg.build("Knet")
INFO: Building Knet
make: 'libknet8.so' is up to date.
julia> Pkg.test("Knet")
INFO: Testing Knet
INFO: No GPU found, Knet using the CPU
(:epoch,0,:loss,461.77524366804886)
(:epoch,1,:loss,3.3320559275652433)
(:epoch,2,:loss,0.1199614974011731)
(:epoch,3,:loss,0.005568748814864047)
(:epoch,4,:loss,0.0012351227916297506)
(:epoch,5,:loss,0.0010684746173929085)
(:epoch,6,:loss,0.00109180688895586)
(:epoch,7,:loss,0.001015281814462818)
(:epoch,8,:loss,0.0010581459658679027)
(:epoch,9,:loss,0.0010342780204682569)
(:epoch,10,:loss,0.0010601555948864918)
2.051864 seconds (1.83 M allocations: 508.324 MB, 1.79% gc time)
INFO: Knet tests passed
julia> using Knet
julia> @knet function linreg(x)
w = par(dims=(1,13), init=Gaussian(0, 0.1))
b = par(dims=(1,1), init=Constant(0))
return w * x .+ b
end
ERROR: UndefVarError: @knet not defined
The text was updated successfully, but these errors were encountered:
The link you provided contains Knet7 tutorial. On the other hand, you're using the Knet8. You can find tutorial for the latest version of Knet (Knet8) here
Thanks for answer. And is it possible to install the older version (Knet7) somehow? Because I am trying to run code, which looks like it uses the version 7.
So I followed this tutorial for installation of Knet. The tests are OK, but first example does not work:
The text was updated successfully, but these errors were encountered: