(m)
| 194 | |
| 195 | @pytest.mark.parametrize("m", submodules) |
| 196 | def test_references_actually_refer(m): |
| 197 | a = m.reference_tensor() |
| 198 | temp = a[indices] |
| 199 | a[indices] = 100 |
| 200 | assert_equal_tensor_ref(m.copy_const_tensor(), modified=100) |
| 201 | a[indices] = temp |
| 202 | assert_equal_tensor_ref(m.copy_const_tensor()) |
| 203 | |
| 204 | a = m.reference_view_of_tensor() |
| 205 | a[indices] = 100 |
| 206 | assert_equal_tensor_ref(m.copy_const_tensor(), modified=100) |
| 207 | a[indices] = temp |
| 208 | assert_equal_tensor_ref(m.copy_const_tensor()) |
| 209 | |
| 210 | |
| 211 | @pytest.mark.parametrize("m", submodules) |
nothing calls this directly
no test coverage detected