Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
update grad value
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Jul 24, 2020
1 parent 303e5ab commit 7ec9749
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/nightly/test_large_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -1236,17 +1236,17 @@ def run_trsm(inp):
grad, out = run_det(A)
assert(out[0] == 1)
out.backward()
check_diag(grad, 0)
check_diag(grad, 1)

grad, out = run_inverse(A)
check_diag(out, 1)
out.backward()
check_diag(grad, 0)
check_diag(grad, -1)

grad, out = run_trmm(A)
check_diag(out, 1)
out.backward()
check_diag(grad, 0)
check_diag(grad, 2)

grad, out = run_trsm(A)
check_diag(out, 1)
Expand All @@ -1258,12 +1258,12 @@ def run_trsm(inp):
grad, out = run_inverse(B)
check_batch_diag(out, 1)
out.backward()
check_batch_diag(grad, 0)
check_batch_diag(grad, -1)

grad, out = run_trmm(B)
check_batch_diag(out, 1)
out.backward()
check_batch_diag(grad, 0)
check_batch_diag(grad, 2)

grad, out = run_trsm(B)
check_batch_diag(out, 1)
Expand Down

0 comments on commit 7ec9749

Please sign in to comment.