Ejemplo n.º 1
0
        public override INDArray Reshape(params long[] newShape)
        {
            if (Length != ArrayUtils.Product(newShape))
            {
                throw new ArgumentException("Reshaping cannot change total ndarray length, only array shape.");
            }

            return(new CudaFloat32NDArray(DNDArray.Reshape(Handle, newShape)));
        }