Java Code Examples for org.nd4j.linalg.factory.Nd4j#createTypedBuffer()
The following examples show how to use
org.nd4j.linalg.factory.Nd4j#createTypedBuffer() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JCublasNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(int[] data, long[] shape, long[] stride, DataType dataType, MemoryWorkspace workspace) { return new JCublasNDArray(Nd4j.createTypedBuffer(data, dataType), shape, stride, Nd4j.order(), dataType); }
Example 2
Source File: CpuNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(float[] data, long[] shape, long[] stride, char order, DataType dataType, MemoryWorkspace workspace) { return new NDArray(Nd4j.createTypedBuffer(data, dataType), shape, stride, order, dataType, workspace); }
Example 3
Source File: CpuNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(double[] data, long[] shape, long[] stride, char order, DataType dataType, MemoryWorkspace workspace) { return new NDArray(Nd4j.createTypedBuffer(data, dataType), shape, stride, order, dataType); }
Example 4
Source File: CpuNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(float[] data, long[] shape, long[] stride, long offset, char ordering) { return new NDArray(Nd4j.createTypedBuffer(data, DataType.FLOAT), shape, stride, offset, ordering); }
Example 5
Source File: CpuNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(double[] data, long[] shape, long[] stride, long offset, char ordering) { return new NDArray(Nd4j.createTypedBuffer(data, DataType.DOUBLE), shape, stride, offset, ordering); }
Example 6
Source File: CpuNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(double[] data, int[] shape, int[] stride, long offset, char ordering) { return new NDArray(Nd4j.createTypedBuffer(data, DataType.DOUBLE), shape, stride, offset, ordering); }
Example 7
Source File: CpuNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(byte[] data, long[] shape, long[] stride, char order, DataType dataType, MemoryWorkspace workspace) { return new NDArray(Nd4j.createTypedBuffer(data, dataType), shape, stride, order, dataType); }
Example 8
Source File: CpuNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(boolean[] data, long[] shape, long[] stride, char order, DataType dataType, MemoryWorkspace workspace) { return new NDArray(Nd4j.createTypedBuffer(data, dataType), shape, stride, order, dataType); }
Example 9
Source File: JCublasNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(byte[] data, long[] shape, long[] stride, DataType dataType, MemoryWorkspace workspace) { return new JCublasNDArray(Nd4j.createTypedBuffer(data, dataType), shape, stride, Nd4j.order(), dataType); }
Example 10
Source File: CpuNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(boolean[] data, long[] shape, long[] stride, DataType dataType, MemoryWorkspace workspace) { return new NDArray(Nd4j.createTypedBuffer(data, dataType), shape, stride, Nd4j.order(), dataType); }
Example 11
Source File: JCublasNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(float[] data, long[] shape, long[] stride, char order, DataType dataType, MemoryWorkspace workspace) { return new JCublasNDArray(Nd4j.createTypedBuffer(data, dataType, workspace), shape, stride, order, dataType); }
Example 12
Source File: CpuNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(byte[] data, long[] shape, long[] stride, DataType dataType, MemoryWorkspace workspace) { return new NDArray(Nd4j.createTypedBuffer(data, dataType), shape, stride, Nd4j.order(), dataType); }
Example 13
Source File: CpuNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(long[] data, long[] shape, long[] stride, char order, DataType dataType, MemoryWorkspace workspace) { return new NDArray(Nd4j.createTypedBuffer(data, dataType), shape, stride, order, dataType); }
Example 14
Source File: JCublasNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(double[] data, long[] shape, long[] stride, DataType dataType, MemoryWorkspace workspace) { return new JCublasNDArray(Nd4j.createTypedBuffer(data, dataType, workspace), shape, stride, Nd4j.order(), dataType); }
Example 15
Source File: JCublasNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(float[] data, long[] shape, long[] stride, char order, DataType dataType) { return new JCublasNDArray(Nd4j.createTypedBuffer(data, dataType), shape, stride, order, dataType); }
Example 16
Source File: JCublasNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(boolean[] data, long[] shape, long[] stride, char order, DataType dataType, MemoryWorkspace workspace) { return new JCublasNDArray(Nd4j.createTypedBuffer(data, dataType), shape, stride, order, dataType); }
Example 17
Source File: JCublasNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(byte[] data, long[] shape, long[] stride, char order, DataType dataType, MemoryWorkspace workspace) { return new JCublasNDArray(Nd4j.createTypedBuffer(data, dataType), shape, stride, order, dataType); }
Example 18
Source File: CpuNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(int[] data, long[] shape, long[] stride, DataType dataType, MemoryWorkspace workspace) { return new NDArray(Nd4j.createTypedBuffer(data, dataType), shape, stride, Nd4j.order(), dataType); }
Example 19
Source File: JCublasNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(int[] data, long[] shape, long[] stride, char order, DataType dataType, MemoryWorkspace workspace) { return new JCublasNDArray(Nd4j.createTypedBuffer(data, dataType), shape, stride, order, dataType); }
Example 20
Source File: JCublasNDArrayFactory.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public INDArray create(long[] data, long[] shape, long[] stride, char order, DataType dataType, MemoryWorkspace workspace) { return new JCublasNDArray(Nd4j.createTypedBuffer(data, dataType), shape, stride, order, dataType); }