(x)
| 1131 | |
| 1132 | def test_stop_gradient(self): |
| 1133 | def func(x): |
| 1134 | return mx.sum(2 * x + mx.stop_gradient(3 * x)) |
| 1135 | |
| 1136 | x = mx.array([0.0, 0.1, -3]) |
| 1137 | expected = [2, 2, 2] |
nothing calls this directly
no outgoing calls
no test coverage detected