I am pretty new to Julia and attempting to replicate a tutorial for InferOpt.jl (Tutorial in question is linked here: Tutorial · InferOpt.jl).
I have already installed the appropriate packages for using Julia in a Jupyter Notebook and began testing it out, everything seems to have gone well, but then I encountered a problem: using Types from Graphs.jl and GridGraphs.jl always gives me an error,
UndefVarError: AbstractGridGraph not defined Stacktrace:  getproperty(x::Module, f::Symbol) @ Base .\Base.jl:31  top-level scope @ In:4  eval @ .\boot.jl:368 [inlined]  include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String) @ Base .\loading.jl:1428
These are the cells I have ran, in order:
using Pkg; Pkg.add(["Flux", "Graphs", "GridGraphs", "InferOpt", "LinearAlgebra", "ProgressMeter", "Random", "Statistics", "Test", "UnicodePlots"])
using Flux using Graphs using InferOpt using LinearAlgebra using ProgressMeter using Random using Statistics using Test using UnicodePlots using GridGraphs Random.seed!(63);
h, w = 50, 100 g = AbstractGridGraph(rand(h, w));
The error shows up after the third cell is ran. I have also attempted to run the code above in VS Code and received the same error. Nonetheless, when I run something like the following code:
nb_features = 5 true_encoder = Chain(Dense(nb_features, 1), z -> dropdims(z; dims=1));
I receive absolutely no errors. What could be going wrong there?
Thank you for any help!