@Override
    public double get(int index) {
        return elements[index];
    }
@Test
    public void serialization431Test() throws URISyntaxException, IOException {
        Path vectorPath = Paths.get(DenseVectorTest.class.getResource("dense-vector-431.tribuo").toURI());
        try (InputStream fis = Files.newInputStream(vectorPath)) {
            TensorProto proto = TensorProto.parseFrom(fis);
            Tensor vector = Tensor.deserialize(proto);
            assertEquals(generateVectorA(), vector);
        }
    }