(self)
| 245 | self.assertLazyAndIdentical(eager_var.count(), lazy_var.count()) |
| 246 | |
| 247 | def test_concat(self): |
| 248 | u = self.eager_var |
| 249 | v = self.lazy_var |
| 250 | self.assertLazyAndIdentical(u, Variable.concat([v[:2], v[2:]], "x")) |
| 251 | self.assertLazyAndIdentical(u[:2], Variable.concat([v[0], v[1]], "x")) |
| 252 | self.assertLazyAndIdentical(u[:2], Variable.concat([u[0], v[1]], "x")) |
| 253 | self.assertLazyAndIdentical(u[:2], Variable.concat([v[0], u[1]], "x")) |
| 254 | self.assertLazyAndIdentical( |
| 255 | u[:3], Variable.concat([v[[0, 2]], v[[1]]], "x", positions=[[0, 2], [1]]) |
| 256 | ) |
| 257 | |
| 258 | def test_missing_methods(self): |
| 259 | v = self.lazy_var |
nothing calls this directly
no test coverage detected