Skip to content

Commit

Permalink
Merge pull request #828 from FluxML/ox/arraymul
Browse files Browse the repository at this point in the history
delete Matric Vector multiply rules that are now in ChainRules
  • Loading branch information
oxinabox authored Dec 4, 2020
2 parents 55329d5 + cf91f43 commit f8b038c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "Zygote"
uuid = "e88e6eb3-aa80-5325-afca-941959d7151f"
version = "0.5.14"
version = "0.5.15"

[deps]
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
Expand All @@ -26,7 +26,7 @@ ZygoteRules = "700de1a5-db45-46bc-99cf-38207098b444"
[compat]
AbstractFFTs = "0.5"
ArrayLayouts = "0.1, 0.2, 0.3, 0.4"
ChainRules = "0.7.16"
ChainRules = "0.7.33"
DiffRules = "1.0"
FillArrays = "0.8, 0.9, 0.10"
ForwardDiff = "0.10"
Expand Down
19 changes: 2 additions & 17 deletions src/lib/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -314,23 +314,8 @@ end
end
end

# LinAlg
# ======

# TODO: remove these once https://github.com/JuliaDiff/ChainRules.jl/pull/305 is merged
@adjoint function(A::AbstractMatrix * x::AbstractVector)
return A * x, Δ::AbstractVector->* x', A' * Δ)
end

@adjoint function *(x::Union{Transpose{<:Any, <:AbstractVector},
LinearAlgebra.Adjoint{<:Any, <:AbstractVector}},
y::AbstractVector)
return x * y, Δ->* y', x' * Δ)
end

@adjoint function(a::AbstractVector * x::AbstractMatrix)
return a * x, Δ::AbstractMatrix->(vec* x'), a' * Δ)
end
# LinearAlgebra
# =============

@adjoint function transpose(x)
back(Δ) = (transpose(Δ),)
Expand Down

2 comments on commit f8b038c

@oxinabox
Copy link
Member Author

Choose a reason for hiding this comment

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

@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/25805

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 v0.5.15 -m "<description of version>" f8b038c552eb092f7c7af682e8d2acb38c733889
git push origin v0.5.15

Please sign in to comment.