/** * This method ensures all operations that supposed to be executed at this moment, are executed and finished. */ @Override public void commit() { backendExecutioner.commit(); }
/** * Get the execution mode for this * execuioner * * @return the execution mode for this executioner */ @Override public ExecutionMode executionMode() { return backendExecutioner.executionMode(); }
/** * This method prints out environmental information returned by getEnvironmentInformation() method */ @Override public void printEnvironmentInformation() { backendExecutioner.printEnvironmentInformation(); }
/** * This method executes given CustomOp * <p> * PLEASE NOTE: You're responsible for input/output validation * * @param op */ @Override public void exec(CustomOp op) { backendExecutioner.exec(op); }
/** * Execute and return the result from a vector op * * @param op */ @Override public INDArray execAndReturn(ShapeOp op) { return backendExecutioner.execAndReturn(op); }
/** * This method return set of key/value and * key/key/value objects, * describing current environment * * @return */ @Override public Properties getEnvironmentInformation() { return backendExecutioner.getEnvironmentInformation(); }
/** * This method returns TADManager instance used for this OpExecutioner * * @return */ @Override public TADManager getTADManager() { return backendExecutioner.getTADManager(); }
/** * This method ensures all operations that supposed to be executed at this moment, are executed. */ @Override public void push() { backendExecutioner.push(); }
/** * This method returns number of elements affected by encoder * * @param indArray * @param target * @param threshold * @return */ @Override public long bitmapEncode(INDArray indArray, INDArray target, double threshold) { return backendExecutioner.bitmapEncode(indArray,target,threshold); }
/** * This method encodes array as thresholds, updating input array at the same time * * @param input * @param threshold * @return encoded array is returned */ @Override public INDArray thresholdEncode(INDArray input, double threshold) { return backendExecutioner.thresholdEncode(input,threshold); }
/** * This method decodes thresholds array, and puts it into target array * * @param encoded * @param target * @return target is returned */ @Override public INDArray thresholdDecode(INDArray encoded, INDArray target) { return backendExecutioner.thresholdDecode(encoded,target); }
/** * This method specifies desired profiling mode * * @param mode */ @Override public void setProfilingMode(ProfilingMode mode) { backendExecutioner.setProfilingMode(mode); }
/** * This method allows to set desired number of elements per thread, for performance optimization purposes. * I.e. if array contains 2048 elements, and threshold is set to 1024, 2 threads will be used for given op execution. * <p> * Default value: 1024 * * @param threshold */ @Override public void setElementsThreshold(int threshold) { backendExecutioner.setElementsThreshold(threshold); }
/** * Ths method returns current profiling * * @return */ @Override public ProfilingMode getProfilingMode() { return backendExecutioner.getProfilingMode(); }
/** * Set the execution mode * * @param executionMode the execution mode */ @Override public void setExecutionMode(ExecutionMode executionMode) { backendExecutioner.setExecutionMode(executionMode); }
@Override public Map<String, INDArray> executeGraph(long id, Map<String, INDArray> map) { return backendExecutioner.executeGraph(id, map); }
@Override public void enableDebugMode(boolean reallyEnable) { backendExecutioner.enableDebugMode(reallyEnable); }
/** * @param op */ @Override public void exec(ShapeOp op) { backendExecutioner.exec(op); }
@Override public INDArray bitmapEncode(INDArray indArray, double threshold) { return backendExecutioner.bitmapEncode(indArray,threshold); }
/** * This method encodes array as thresholds, updating input array at the same time * * @param input * @param threshold * @param boundary @return encoded array is returned */ @Override public INDArray thresholdEncode(INDArray input, double threshold, Integer boundary) { return backendExecutioner.thresholdEncode(input,threshold,boundary); }