We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_mtl_backward
1 parent 3ef5c3f commit 3b497b3Copy full SHA for 3b497b3
tests/unit/autojac/test_mtl_backward.py
@@ -496,7 +496,7 @@ def test_tasks_params_overlap():
496
assert_close(p1.grad, f * p12)
497
assert_close(p12.grad, f * p1 + f * p2)
498
499
- J = tensor_([[-p1 * p12, p1 * p12], [-p2 * p12, p2 * p12]])
+ J = tensor_([[-8.0, 8.0], [-12.0, 12.0]])
500
assert_close(p0.grad, aggregator(J))
501
502
@@ -515,7 +515,7 @@ def test_tasks_params_are_the_same():
515
516
assert_close(p1.grad, f + 1)
517
518
- J = tensor_([[-p1, p1], [-1.0, 1.0]])
+ J = tensor_([[-2.0, 2.0], [-1.0, 1.0]])
519
520
521
@@ -539,7 +539,7 @@ def test_task_params_is_subset_of_other_task_params():
539
assert_close(p2.grad, y1)
540
assert_close(p1.grad, p2 * f + f)
541
542
- J = tensor_([[-p1, p1], [-p1 * p2, p1 * p2]])
+ J = tensor_([[-2.0, 2.0], [-6.0, 6.0]])
543
544
545
0 commit comments