Skip to content

Added CPUStatic backend and implemented new initialparameters interface. #65

Added CPUStatic backend and implemented new initialparameters interface.

Added CPUStatic backend and implemented new initialparameters interface. #65

Triggered via pull request December 5, 2024 10:11
Status Failure
Total duration 2m 58s
Artifacts

Documenter.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors
Documentation: ../../../.julia/packages/Documenter/Bs999/src/utilities/utilities.jl#L44
failed to run `@example` block in src/static_neural_network_parameters.md:8-19 ```@example static_parameters using AbstractNeuralNetworks import Random Random.seed!(123) backend = AbstractNeuralNetworks.CPUStatic() input_dim = 2 n_hidden_layers = 100 c = Chain(Dense(input_dim, 10, tanh), Tuple(Dense(10, 10, tanh) for _ in 1:n_hidden_layers)..., Dense(10, 1, tanh)) nn = NeuralNetwork(c, backend) typeof(nn.params.L1.W) ``` exception = MethodError: no method matching NeuralNetwork(::Chain{Tuple{Dense{2, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, GenericActivation{typeof(tanh)}}, Dense{10, 10, true, Generic
Documentation: ../../../.julia/packages/Documenter/Bs999/src/utilities/utilities.jl#L44
failed to run `@example` block in src/static_neural_network_parameters.md:22-29 ```@example static_parameters nn_cpu = changebackend(CPU(), nn) second_dim = 200 x = rand(input_dim, second_dim) nn(x); # hide @time nn(x); nothing # hide ``` exception = UndefVarError: `nn` not defined in `Main.__atexample__named__static_parameters` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ static_neural_network_parameters.md:23 [2] eval @ ./boot.jl:430 [inlined] [3] #60 @ ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:803 [inlined] [4] cd(f::Documenter.var"#60#62"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [5] (::Documenter.var"#59#61"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:802 [6] (::IOCapture.var"#5#9"{DataType, Documenter.var"#59#61"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:170 [7] with_logstate(f::IOCapture.var"#5#9"{DataType, Documenter.var"#59#61"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}}, logstate::Base.CoreLogging.LogState) @ Base.CoreLogging ./logging/logging.jl:522 [8] with_logger(f::Function, logger::Base.CoreLogging.ConsoleLogger) @ Base.CoreLogging ./logging/logging.jl:632 [9] capture(f::Documenter.var"#59#61"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer, io_context::Vector{Any}) @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:167 [10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:801
Documentation: ../../../.julia/packages/Documenter/Bs999/src/utilities/utilities.jl#L44
failed to run `@example` block in src/static_neural_network_parameters.md:31-35 ```@example static_parameters nn_cpu(x); # hide @time nn_cpu(x); nothing # hide ``` exception = UndefVarError: `nn_cpu` not defined in `Main.__atexample__named__static_parameters` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ static_neural_network_parameters.md:32 [2] eval @ ./boot.jl:430 [inlined] [3] #60 @ ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:803 [inlined] [4] cd(f::Documenter.var"#60#62"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [5] (::Documenter.var"#59#61"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:802 [6] (::IOCapture.var"#5#9"{DataType, Documenter.var"#59#61"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:170 [7] with_logstate(f::IOCapture.var"#5#9"{DataType, Documenter.var"#59#61"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}}, logstate::Base.CoreLogging.LogState) @ Base.CoreLogging ./logging/logging.jl:522 [8] with_logger(f::Function, logger::Base.CoreLogging.ConsoleLogger) @ Base.CoreLogging ./logging/logging.jl:632 [9] capture(f::Documenter.var"#59#61"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer, io_context::Vector{Any}) @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:167 [10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:801
Documentation: ../../../.julia/packages/Documenter/Bs999/src/utilities/utilities.jl#L44
failed to run `@example` block in src/static_neural_network_parameters.md:39-45 ```@example static_parameters using StaticArrays x = @smatrix rand(input_dim, second_dim) nn(x); @time nn(x); nothing # hide ``` exception = UndefVarError: `second_dim` not defined in `Main.__atexample__named__static_parameters` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ static_neural_network_parameters.md:41 [2] eval @ ./boot.jl:430 [inlined] [3] #60 @ ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:803 [inlined] [4] cd(f::Documenter.var"#60#62"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [5] (::Documenter.var"#59#61"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:802 [6] (::IOCapture.var"#5#9"{DataType, Documenter.var"#59#61"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:170 [7] with_logstate(f::IOCapture.var"#5#9"{DataType, Documenter.var"#59#61"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}}, logstate::Base.CoreLogging.LogState) @ Base.CoreLogging ./logging/logging.jl:522 [8] with_logger(f::Function, logger::Base.CoreLogging.ConsoleLogger) @ Base.CoreLogging ./logging/logging.jl:632 [9] capture(f::Documenter.var"#59#61"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer, io_context::Vector{Any}) @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:167 [10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:801
Documentation: ../../../.julia/packages/Documenter/Bs999/src/utilities/utilities.jl#L44
failed to run `@example` block in src/static_neural_network_parameters.md:31-35 ```@example static_parameters nn_cpu(x); # hide @time nn_cpu(x); nothing # hide ``` exception = UndefVarError: `nn_cpu` not defined in `Main.__atexample__named__static_parameters` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ static_neural_network_parameters.md:32 [2] eval @ ./boot.jl:430 [inlined] [3] #60 @ ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:803 [inlined] [4] cd(f::Documenter.var"#60#62"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [5] (::Documenter.var"#59#61"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:802 [6] (::IOCapture.var"#5#9"{DataType, Documenter.var"#59#61"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:170 [7] with_logstate(f::IOCapture.var"#5#9"{DataType, Documenter.var"#59#61"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}}, logstate::Base.CoreLogging.LogState) @ Base.CoreLogging ./logging/logging.jl:522 [8] with_logger(f::Function, logger::Base.CoreLogging.ConsoleLogger) @ Base.CoreLogging ./logging/logging.jl:632 [9] capture(f::Documenter.var"#59#61"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer, io_context::Vector{Any}) @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:167 [10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/Bs999/src/expander_pipeline.jl:801
Documentation: ../../../.julia/packages/Documenter/Bs999/src/utilities/utilities.jl#L44
Cannot resolve @ref for md"[`NeuralNetworkBAckend`](@ref)" in src/index.md. - No docstring found in doc for binding `AbstractNeuralNetworks.NeuralNetworkBAckend`. - No docstring found in doc for binding `Main.NeuralNetworkBAckend`.
Documentation
Process completed with exit code 1.