Skip to content

Commit ac68eb0

Browse files
authored
Update Mooncake (#568)
1 parent 5d98ede commit ac68eb0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Manifest.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -654,9 +654,9 @@ version = "0.4.0"
654654

655655
[[deps.DiffEqBase]]
656656
deps = ["ArrayInterface", "ConcreteStructs", "DataStructures", "DocStringExtensions", "EnumX", "EnzymeCore", "FastBroadcast", "FastClosures", "FastPower", "ForwardDiff", "FunctionWrappers", "FunctionWrappersWrappers", "LinearAlgebra", "Logging", "Markdown", "MuladdMacro", "Parameters", "PreallocationTools", "PrecompileTools", "Printf", "RecursiveArrayTools", "Reexport", "SciMLBase", "SciMLOperators", "SciMLStructures", "Setfield", "Static", "StaticArraysCore", "Statistics", "TruncatedStacktraces"]
657-
git-tree-sha1 = "b7dbeaa770bad0980ddddf606de814cff2acb3bc"
657+
git-tree-sha1 = "b1e23a7fe7371934d9d538114a7e7166c1d09e05"
658658
uuid = "2b5f629d-d688-5b77-993f-72d75c75574e"
659-
version = "6.160.0"
659+
version = "6.161.0"
660660

661661
[deps.DiffEqBase.extensions]
662662
DiffEqBaseCUDAExt = "CUDA"
@@ -2159,9 +2159,9 @@ version = "0.8.1"
21592159

21602160
[[deps.Mooncake]]
21612161
deps = ["ADTypes", "ChainRules", "ChainRulesCore", "DiffRules", "DiffTests", "ExprTools", "FunctionWrappers", "Graphs", "InteractiveUtils", "LinearAlgebra", "MistyClosures", "Random", "Setfield", "Test"]
2162-
git-tree-sha1 = "46c0f7c9cbe46232d0f4f2145126bf7b3499ffd0"
2162+
git-tree-sha1 = "86238d75d47d0cae923504e201c8fc00b797705f"
21632163
uuid = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6"
2164-
version = "0.4.62"
2164+
version = "0.4.63"
21652165

21662166
[deps.Mooncake.extensions]
21672167
MooncakeAllocCheckExt = "AllocCheck"

tutorials/03-bayesian-neural-network/index.qmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ function vector_to_parameters(ps_new::AbstractVector, ps::NamedTuple)
169169
@assert length(ps_new) == Lux.parameterlength(ps)
170170
i = 1
171171
function get_ps(x)
172-
z = reshape(ps_new[i:(i + length(x) - 1)], size(x))
172+
z = reshape(view(ps_new, i:(i + length(x) - 1)), size(x))
173173
i += length(x)
174174
return z
175175
end

0 commit comments

Comments
 (0)