Home
last modified time | relevance | path

Searched refs:inputs (Results 1 – 25 of 72) sorted by relevance

123

/frameworks/ml/bordeaux/learning/multiclass_pa/native/
Dmulticlass_pa.cpp70 float MulticlassPA::Score(const vector<float>& inputs, in Score() argument
74 for (int i = 0; i < static_cast<int>(inputs.size()); ++i) { in Score()
75 result += inputs[i] * parameters[i]; in Score()
80 float MulticlassPA::SparseScore(const vector<pair<int, float> >& inputs, in SparseScore() argument
83 for (int i = 0; i < static_cast<int>(inputs.size()); ++i) { in SparseScore()
86 result += inputs[i].second * parameters[inputs[i].first]; in SparseScore()
91 float MulticlassPA::L2NormSquare(const vector<float>& inputs) const { in L2NormSquare()
93 for (int i = 0; i < static_cast<int>(inputs.size()); ++i) { in L2NormSquare()
94 norm += inputs[i] * inputs[i]; in L2NormSquare()
100 const vector<pair<int, float> >& inputs) const { in SparseL2NormSquare()
[all …]
Dmulticlass_pa.h49 float Score(const std::vector<float>& inputs,
51 float SparseScore(const std::vector<std::pair<int, float> >& inputs,
55 float L2NormSquare(const std::vector<float>& inputs) const;
56 float SparseL2NormSquare(const std::vector<std::pair<int, float> >& inputs) const;
61 virtual float TrainOneExample(const std::vector<float>& inputs, int target);
63 const std::vector<std::pair<int, float> >& inputs, int target);
73 virtual int GetClass(const std::vector<float>& inputs);
74 virtual int SparseGetClass(const std::vector<std::pair<int, float> >& inputs);
/frameworks/base/media/mca/filterpacks/native/imageproc/
Dto_rgba.c21 int gray_to_rgb_process(const char** inputs, in gray_to_rgb_process() argument
36 const char* input_ptr = inputs[0]; in gray_to_rgb_process()
52 int rgba_to_rgb_process(const char** inputs, in rgba_to_rgb_process() argument
67 const char* input_ptr = inputs[0]; in rgba_to_rgb_process()
84 int gray_to_rgba_process(const char** inputs, in gray_to_rgba_process() argument
99 const char* input_ptr = inputs[0]; in gray_to_rgba_process()
116 int rgb_to_rgba_process(const char** inputs, in rgb_to_rgba_process() argument
131 const char* input_ptr = inputs[0]; in rgb_to_rgba_process()
Dinvert.c21 int invert_process(const char** inputs, in invert_process() argument
36 const char* input_ptr = inputs[0]; in invert_process()
Dcontrast.c44 int contrast_process(const char** inputs, in contrast_process() argument
63 const char* input_ptr = inputs[0]; in contrast_process()
Dbrightness.c49 int brightness_process(const char** inputs, in brightness_process() argument
68 const int* input_ptr = (int*)inputs[0]; in brightness_process()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DNativeProgram.java98 public void process(Frame[] inputs, Frame output) { in process() argument
102 NativeFrame[] nativeInputs = new NativeFrame[inputs.length]; in process()
103 for (int i = 0; i < inputs.length; ++i) { in process()
104 if (inputs[i] == null || inputs[i] instanceof NativeFrame) { in process()
105 nativeInputs[i] = (NativeFrame)inputs[i]; in process()
173 private native boolean callNativeProcess(NativeFrame[] inputs, NativeFrame output); in callNativeProcess() argument
DProgram.java27 public abstract void process(Frame[] inputs, Frame output); in process() argument
30 Frame[] inputs = new Frame[1]; in process() local
31 inputs[0] = input; in process()
32 process(inputs, output); in process()
DShaderProgram.java88 public void process(Frame[] inputs, Frame output) { in process() argument
97 GLFrame[] glInputs = new GLFrame[inputs.length]; in process()
98 for (int i = 0; i < inputs.length; ++i) { in process()
99 if (inputs[i] instanceof GLFrame) { in process()
100 glInputs[i] = (GLFrame)inputs[i]; in process()
259 private native boolean shaderProcess(GLFrame[] inputs, GLFrame output); in shaderProcess() argument
DFilterFunction.java96 public Frame executeWithArgList(Object... inputs) { in executeWithArgList() argument
97 return execute(KeyValueMap.fromKeyValues(inputs)); in executeWithArgList()
/frameworks/ml/bordeaux/learning/multiclass_pa/jni/
Djni_multiclass_pa.cpp72 vector<pair<int, float> > inputs; in Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample() local
74 CreateIndexValuePairs(indices, values, value_len, &inputs); in Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample()
75 classifier->SparseTrainOneExample(inputs, target); in Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample()
105 vector<pair<int, float> > inputs; in Java_android_bordeaux_learning_MulticlassPA_nativeSparseGetClass() local
106 CreateIndexValuePairs(indices, values, value_len, &inputs); in Java_android_bordeaux_learning_MulticlassPA_nativeSparseGetClass()
109 return classifier->SparseGetClass(inputs); in Java_android_bordeaux_learning_MulticlassPA_nativeSparseGetClass()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DImageCombineFilter.java85 Frame[] inputs = new Frame[mInputNames.length]; in process() local
87 inputs[i++] = pullInput(inputName); in process()
91 Frame output = context.getFrameManager().newFrame(inputs[0].getFormat()); in process()
94 updateProgramWithTarget(inputs[0].getFormat().getTarget(), context); in process()
97 mProgram.process(inputs, output); in process()
DBitmapOverlayFilter.java111 Frame[] inputs = {input, frame}; in process() local
112 mProgram.process(inputs, output); in process()
DGrainFilter.java183 Frame[] inputs = {input, noiseFrame}; in process() local
184 mGrainProgram.process(inputs, output); in process()
DRedEyeFilter.java132 Frame[] inputs = {input, mRedEyeFrame}; in process() local
133 mProgram.process(inputs, output); in process()
/frameworks/rs/cpu_ref/
DrsCpuScriptGroup2.cpp255 const vector<const char*>& inputs, const vector<string>& kernelBatches, in setupCompileArguments() argument
276 for (const char* input : inputs) { in setupCompileArguments()
312 const std::vector<const char*>& inputs, in generateSourceSlot() argument
323 const int index = find(inputs.begin(), inputs.end(), bitcodeFilename) - in generateSourceSlot()
324 inputs.begin(); in generateSourceSlot()
359 std::vector<const char*> inputs(inputSet.begin(), inputSet.end()); in compile() local
373 generateSourceSlot(mCpuRefImpl, *batch->mClosures.front()->mClosure, inputs, ss); in compile()
377 generateSourceSlot(mCpuRefImpl, *cpuClosure->mClosure, inputs, ss); in compile()
399 setupCompileArguments(inputs, kernelBatches, invokeBatches, cacheDir, in compile()
407 inputs.push_back(coreLibPath.c_str()); in compile()
[all …]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableReprocessFormatsMap.java54 int[] inputs = StreamConfigurationMap.imageFormatToInternal(value.getInputs()); in marshal() local
55 for (int input : inputs) { in marshal()
106 int[] inputs = value.getInputs(); in calculateMarshalSize() local
107 for (int input : inputs) { in calculateMarshalSize()
/frameworks/av/services/audiopolicy/
Daudio_policy.conf114 inputs {
136 inputs {
/frameworks/base/media/mca/filterfw/native/core/
Dnative_program.cpp103 bool NativeProgram::CallProcess(const std::vector<const char*>& inputs, in CallProcess() argument
108 return process_function_(const_cast<const char**>(&inputs[0]), in CallProcess()
110 inputs.size(), in CallProcess()
/frameworks/base/core/java/android/hardware/camera2/params/
DReprocessFormatsMap.java130 final int[] inputs = new int[mInputCount]; in getInputs() local
160 inputs[j] = format; in getInputs()
163 return StreamConfigurationMap.imageFormatToPublic(inputs); in getInputs()
/frameworks/base/media/mca/filterfw/jni/
Djni_native_program.cpp132 jobjectArray inputs, in Java_android_filterfw_core_NativeProgram_callNativeProcess() argument
137 if (!program || !inputs) { in Java_android_filterfw_core_NativeProgram_callNativeProcess()
142 const int input_count = env->GetArrayLength(inputs); in Java_android_filterfw_core_NativeProgram_callNativeProcess()
148 jobject input = env->GetObjectArrayElement(inputs, i); in Java_android_filterfw_core_NativeProgram_callNativeProcess()
Djni_shader_program.cpp100 jobjectArray inputs, in Java_android_filterfw_core_ShaderProgram_shaderProcess() argument
104 if (program && inputs && output) { in Java_android_filterfw_core_ShaderProgram_shaderProcess()
106 const int input_count = env->GetArrayLength(inputs); in Java_android_filterfw_core_ShaderProgram_shaderProcess()
108 jobject input = env->GetObjectArrayElement(inputs, i); in Java_android_filterfw_core_ShaderProgram_shaderProcess()
/frameworks/base/rs/java/android/renderscript/
DScriptGroup.java410 List<Input> inputs, Future[] outputs) { in ScriptGroup() argument
414 mInputs2 = inputs; in ScriptGroup()
435 public Object[] execute(Object... inputs) { in execute() argument
436 if (inputs.length < mInputs2.size()) { in execute()
437 Log.e(TAG, this.toString() + " receives " + inputs.length + " inputs, " + in execute()
442 if (inputs.length > mInputs2.size()) { in execute()
443 Log.i(TAG, this.toString() + " receives " + inputs.length + " inputs, " + in execute()
448 Object obj = inputs[i]; in execute()
780 ArrayList<IO> inputs = new ArrayList<IO>(); in create() local
804 inputs.add(new IO(kid)); in create()
[all …]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DScriptGroup.java404 List<Input> inputs, Future[] outputs) { in ScriptGroup() argument
412 mInputs2 = inputs; in ScriptGroup()
431 public Object[] execute(Object... inputs) { in execute() argument
432 if (inputs.length < mInputs2.size()) { in execute()
433 Log.e(TAG, this.toString() + " receives " + inputs.length + " inputs, " + in execute()
438 if (inputs.length > mInputs2.size()) { in execute()
439 Log.i(TAG, this.toString() + " receives " + inputs.length + " inputs, " + in execute()
444 Object obj = inputs[i]; in execute()
892 ArrayList<IO> inputs = new ArrayList<IO>(); in create() local
916 inputs.add(new IO(kid)); in create()
[all …]
/frameworks/compile/mclinker/lib/Script/
DScriptParser.yy269 inputs
273 inputs : input
275 | inputs input
277 | inputs ',' input
281 inputs ')'
283 | inputs AS_NEEDED '('
285 inputs ')'
287 | inputs ',' AS_NEEDED '('
289 inputs ')'

123