我无法在不丢失精度的情况下将 double 转换为 Nd4j.INDArray。
double[] weight = new double[]{-0.13404223866376802,-0.11294084872465669,0.11232944517596409,-0.01687720880184701,0.13288394029423414,-0.06916641552096867,0.1518882606786481};
INDArray array = Nd4j.create(weight, new int[]{1, 7});
System.out.println(array);
输出是
[-0.13, -0.11, 0.11, -0.02, 0.13, -0.07, 0.15]
所需的输出应该是
[-0.13404223866376802,-0.11294084872465669,0.11232944517596409,-0.01687720880184701,0.13288394029423414,-0.06916641552096867,0.1518882606786481]
如何全精度转换?