public static class IDXDataSource.IDXData extends Object
Modifier and Type | Method and Description |
---|---|
static IDXDataSource.IDXData |
createIDXData(IDXDataSource.IDXType dataType,
int[] shape,
double[] data)
Constructs an IDXData, validating the input and defensively copying it.
|
void |
save(Path outputPath,
boolean gzip)
Writes out this IDXData to the specified path.
|
public static IDXDataSource.IDXData createIDXData(IDXDataSource.IDXType dataType, int[] shape, double[] data)
dataType
- The data type.shape
- The tensor shape.data
- The data to write.public void save(Path outputPath, boolean gzip) throws IOException
outputPath
- The path to write to.gzip
- If true, gzip the output.IOException
- If the write failed.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.