Skip to content

Commit

Permalink
Merge pull request #75 from slimgroup/mix-type-rr
Browse files Browse the repository at this point in the history
Mix type rr
  • Loading branch information
mloubout authored Mar 2, 2023
2 parents 11a4a77 + 0d4c1db commit 1adcc49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "InvertibleNetworks"
uuid = "b7115f24-5f92-4794-81e8-23b0ddb121d3"
authors = ["Philipp Witte <[email protected]>", "Ali Siahkoohi <[email protected]>", "Mathias Louboutin <[email protected]>", "Gabrio Rizzuti <[email protected]>", "Rafael Orozco <[email protected]>", "Felix J. herrmann <[email protected]>"]
version = "2.2.3"
version = "2.2.4"

This comment has been minimized.

Copy link
@mloubout

mloubout Mar 2, 2023

Author Member

@JuliaRegistry register

This comment has been minimized.

Copy link
@mloubout

mloubout Mar 2, 2023

Author Member

[deps]
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/chainrules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function forward_update!(state::InvertibleOperationsTape, X::AbstractArray{T,N},

if isa_newblock(state, X)
push!(state.Y, Y)
push!(state.layer_blocks, [net])
push!(state.layer_blocks, Vector{Any}([net]))
state.counter_block += 1
state.counter_layer = 1
else
Expand Down
2 changes: 1 addition & 1 deletion src/utils/compute_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function chain_lr(x::AbstractMatrix{T}, vi::Vararg{AbstractVector{T}, N}) where
out = T(1) .* x
tmp = cuzeros(vi[1], size(x, 1))
for v=vi
n = -2/norm(v)^2
n = -2/dot(v, v)
mul!(tmp, out, v)
rmul!(tmp, n)
gemm_outer!(out, tmp, v)
Expand Down

1 comment on commit 1adcc49

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/78830

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v2.2.4 -m "<description of version>" 1adcc499008840c6447dd287de49b227bc4b1b77
git push origin v2.2.4

Please sign in to comment.