(self)
| 93 | return Variable(["x", "y"], data) |
| 94 | |
| 95 | def test_getitem_dict(self): |
| 96 | v = self.cls(["x"], np.random.randn(5)) |
| 97 | actual = v[{"x": 0}] |
| 98 | expected = v[0] |
| 99 | assert_identical(expected, actual) |
| 100 | |
| 101 | def test_getitem_1d(self): |
| 102 | data = np.array([0, 1, 2]) |
nothing calls this directly
no test coverage detected