Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ITensors"
uuid = "9136182c-28ba-11e9-034c-db9fb085ebd5"
authors = ["Matthew Fishman <[email protected]>", "Miles Stoudenmire <[email protected]>"]
version = "0.7.11"
version = "0.7.12"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down
4 changes: 2 additions & 2 deletions ext/ITensorsChainRulesCoreExt/itensor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function rrule(::Type{ITensor}, x1::AllowAlias, x2::TensorStorage, x3)
y = ITensor(x1, x2, x3)
function ITensor_pullback(ȳ)
x̄1 = NoTangent()
x̄2 = .tensor.storage
x̄2 = unthunk(ȳ).tensor.storage
x̄3 = NoTangent()
return (NoTangent(), x̄1, x̄2, x̄3)
end
Expand Down Expand Up @@ -84,7 +84,7 @@ end
function rrule(::typeof(tensor), x1::ITensor)
y = tensor(x1)
function tensor_pullback(ȳ)
x̄1 = ITensor(typeof(storage(x1))(.storage.data), inds(x1))
x̄1 = ITensor(typeof(storage(x1))(unthunk(ȳ).storage.data), inds(x1))
return (NoTangent(), x̄1)
end
return y, tensor_pullback
Expand Down
Loading