public class KernelParamsWrapper extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
Object[] |
kernelParameters
List of processed kernel parameters ready to be passed to the kernel
|
| Constructor and Description |
|---|
KernelParamsWrapper(Op op,
boolean closeContext,
Object... kernelParams)
Create a new wrapper for the kernel parameters.
|
KernelParamsWrapper(Op op,
Object... kernelParams)
Create a new wrapper for the kernel parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Free all the buffers from this kernel's parameters
|
CudaContext |
getContext() |
Object[] |
getKernelParameters()
The list of processed kernel parameters, These should be get passed to the cuda kernel
|
KernelParamsWrapper |
setResultArray(INDArray array)
set the array that will contain the results, If the array is not set, then data from the device will not be copied to the host
|
KernelParamsWrapper |
setResultOp(Accumulation op,
INDArray result)
set the Op that this result is for
|
void |
sync()
Sync the streams
|
public final Object[] kernelParameters
public KernelParamsWrapper(Op op, Object... kernelParams)
kernelParams - public KernelParamsWrapper(Op op, boolean closeContext, Object... kernelParams)
kernelParams - public Object[] getKernelParameters()
public KernelParamsWrapper setResultArray(INDArray array)
array - public KernelParamsWrapper setResultOp(Accumulation op, INDArray result)
op - result - public void close()
throws Exception
close in interface AutoCloseableExceptionpublic CudaContext getContext()
public void sync()
Copyright © 2015. All Rights Reserved.