Home
last modified time | relevance | path

Searched refs:beta (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/rs/cpu_ref/
DrsCpuBLASDispatch.h27 const float *X, const int incX, const float beta,
33 const int incX, const float beta, float *Y, const int incY);
60 const double *X, const int incX, const double beta,
66 const int incX, const double beta, double *Y, const int incY);
93 const void *X, const int incX, const void *beta,
99 const int incX, const void *beta, void *Y, const int incY);
126 const void *X, const int incX, const void *beta,
132 const int incX, const void *beta, void *Y, const int incY);
163 const float beta, float *Y, const int incY);
167 const float beta, float *Y, const int incY);
[all …]
DrsCpuIntrinsicBLAS.cpp144 static void walk_tiled_gemm(Func blasFunc, T_param alpha, T_param beta, int vecSize, in walk_tiled_gemm() argument
186 (T_data *)B + nStart * nStride * vecSize, ldb, beta, in walk_tiled_gemm()
197 float beta = call->beta.f; in walk_2d_sgemm() local
199 walk_tiled_gemm<float, float, FnPtr_cblas_sgemm>(cblas_sgemm, alpha, beta, 1, call, mtls); in walk_2d_sgemm()
208 double beta = call->beta.d; in walk_2d_dgemm() local
210 walk_tiled_gemm<double, double, FnPtr_cblas_dgemm>(cblas_dgemm, alpha, beta, 1, call, mtls); in walk_2d_dgemm()
219 void * beta = (void *)&call->beta.c; in walk_2d_cgemm() local
221 walk_tiled_gemm<float, void *, FnPtr_cblas_cgemm>(cblas_cgemm, alpha, beta, 2, call, mtls); in walk_2d_cgemm()
230 void * beta = (void *)&call->beta.z; in walk_2d_zgemm() local
232 walk_tiled_gemm<double, void *, FnPtr_cblas_zgemm>(cblas_zgemm, alpha, beta, 2, call, mtls); in walk_2d_zgemm()
[all …]
/frameworks/ml/nn/runtime/test/specs/V1_2/
Dlog_softmax.mod.py19 def test(input0, output0, input_data, beta, axis, output_data): argument
20 model = Model().Operation("LOG_SOFTMAX", input0, beta, axis).To(output0)
31 beta=1.0,
44 beta=1.0,
57 beta=1.0,
68 beta=10.0,
/frameworks/rs/cpp/
DScriptIntrinsicBLAS.cpp73 call.beta.f = betaF; in setUpBLASCall()
78 call.beta.d = betaD; in setUpBLASCall()
84 call.beta.c.r = betaCX; in setUpBLASCall()
85 call.beta.c.i = betaCY; in setUpBLASCall()
91 call.beta.z.r = betaZX; in setUpBLASCall()
92 call.beta.z.i = betaZY; in setUpBLASCall()
110 float beta, RsAllocation C, int incX, int incY, int KL, int KU) { in nScriptIntrinsicBLAS_Single() argument
112 M, N, K, incX, incY, KL, KU, alpha, beta, 0.0, 0.0, in nScriptIntrinsicBLAS_Single()
124 double beta, RsAllocation C, int incX, int incY, int KL, int KU) { in nScriptIntrinsicBLAS_Double() argument
126 M, N, K, incX, incY, KL, KU, 0.0f, 0.0f, alpha, beta, in nScriptIntrinsicBLAS_Double()
[all …]
DrsCppStructs.h1851 float beta, const sp<Allocation>& Y, int incY);
1870 double beta, const sp<Allocation>& Y, int incY);
1889 Float2 beta, const sp<Allocation>& Y, int incY);
1908 Double2 beta, const sp<Allocation>& Y, int incY);
1936 float beta, const sp<Allocation>& Y, int incY);
1964 int incX, double beta, const sp<Allocation>& Y, int incY);
1992 int incX, Float2 beta, const sp<Allocation>& Y, int incY);
2020 Double2 beta, const sp<Allocation>& Y, int incY);
2550 int incX, float beta, const sp<Allocation>& Y, int incY);
2576 int incX, float beta, const sp<Allocation>& Y, int incY);
[all …]
/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsicBLAS.java320 …pose int TransA, float alpha, Allocation A, Allocation X, int incX, float beta, Allocation Y, int … in SGEMV() argument
324 …as_sgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, A.getID(mRS), X.getID(mRS), beta, Y.getID(mRS), incX… in SGEMV() local
342 …se int TransA, double alpha, Allocation A, Allocation X, int incX, double beta, Allocation Y, int … in DGEMV() argument
346 …as_dgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, A.getID(mRS), X.getID(mRS), beta, Y.getID(mRS), incX… in DGEMV() local
364 …se int TransA, Float2 alpha, Allocation A, Allocation X, int incX, Float2 beta, Allocation Y, int … in CGEMV() argument
368 …A, 0, 0, 0, 0, M, N, 0, alpha.x, alpha.y, A.getID(mRS), X.getID(mRS), beta.x, beta.y, Y.getID(mRS)… in CGEMV()
386 … int TransA, Double2 alpha, Allocation A, Allocation X, int incX, Double2 beta, Allocation Y, int … in ZGEMV() argument
390 …A, 0, 0, 0, 0, M, N, 0, alpha.x, alpha.y, A.getID(mRS), X.getID(mRS), beta.x, beta.y, Y.getID(mRS)… in ZGEMV()
417 … int KL, int KU, float alpha, Allocation A, Allocation X, int incX, float beta, Allocation Y, int … in SGBMV() argument
425 …as_sgbmv, TransA, 0, 0, 0, 0, M, N, 0, alpha, A.getID(mRS), X.getID(mRS), beta, Y.getID(mRS), incX… in SGBMV() local
[all …]
/frameworks/ml/nn/common/operations/
DSoftmax.cpp51 inline bool softmaxSlowFloat32(const float* inputData, const Shape& inputShape, const float beta, in softmaxSlowFloat32() argument
71 sum += std::exp((*p - maxValue) * beta); in softmaxSlowFloat32()
76 *pOut = std::exp((*p - maxValue) * beta) / sum; in softmaxSlowFloat32()
83 bool softmaxFloat32(const float* inputData, const Shape& inputShape, const float beta, int32_t axis, in softmaxFloat32() argument
90 tflite::SoftmaxParams param = {.beta = beta}; in softmaxFloat32()
95 return softmaxSlowFloat32(inputData, inputShape, beta, axis, outputData, outputShape); in softmaxFloat32()
99 bool softmaxFloat16(const _Float16* inputData, const Shape& inputShape, const float beta, in softmaxFloat16() argument
106 softmaxFloat32(inputData_float32.data(), inputShape, beta, axis, outputData_float32.data(), in softmaxFloat16()
114 bool softmaxQuant8Impl(const T* inputData, const Shape& inputShape, const float beta, int32_t axis, in softmaxQuant8Impl() argument
201 bool softmaxQuant8(const T* inputData, const Shape& inputShape, const float beta, int32_t axis, in softmaxQuant8() argument
[all …]
DLocalResponseNormalization.cpp51 int32_t radius, float bias, float alpha, float beta, in localResponseNormFloat32Impl() argument
72 float multiplier = std::pow(bias + alpha * sum, -beta); in localResponseNormFloat32Impl()
82 T beta, int32_t axis, T* outputData, const Shape& outputShape);
86 float bias, float alpha, float beta, int32_t axis, float* outputData, in localResponseNorm() argument
94 .range = radius, .bias = bias, .alpha = alpha, .beta = beta}; in localResponseNorm()
100 return localResponseNormFloat32Impl(inputData, inputShape, radius, bias, alpha, beta, axis, in localResponseNorm()
107 _Float16 bias, _Float16 alpha, _Float16 beta, int32_t axis, in localResponseNorm() argument
114 localResponseNorm<float>(inputDataFloat32.data(), inputShape, radius, bias, alpha, beta, axis, in localResponseNorm()
DInstanceNormalization.cpp48 inline bool instanceNormNhwc(const T* inputData, const Shape& inputShape, T gamma, T beta, in instanceNormNhwc() argument
82 outputData[ind] = (inputData[ind] - mean) * gamma / sigma + beta; in instanceNormNhwc()
91 inline bool instanceNorm(const T* inputData, const Shape& inputShape, T gamma, T beta, T epsilon, in instanceNorm() argument
97 NN_RET_CHECK(instanceNormNhwc(input.getNhwcBuffer(), input.getNhwcShape(), gamma, beta, epsilon, in instanceNorm()
DLogSoftmax.cpp43 inline bool compute(const T* input, const Shape& shape, T beta, uint32_t axis, T* output) { in compute() argument
60 (input[(outer * axisSize + i) * innerSize + inner] - maxValue) * beta)); in compute()
66 (input[(outer * axisSize + i) * innerSize + inner] - maxValue) * beta - in compute()
/frameworks/av/tools/resampler_tools/
Dfir.cpp61 static double kaiser(int k, int N, double beta) { in kaiser() argument
64 return I0(beta * sqrt(1.0 - sqr((2.0*k)/N - 1.0))) / I0(beta); in kaiser()
135 double beta = 7.865; in main() local
208 beta = atof(optarg); in main()
260 double y = kaiser(ix+N, 2*N, beta) * sinc(x) * 2.0 * Fcr; in main()
291 double y = kaiser(i+N, 2*N, beta) * sinc(x) * 2.0 * Fcr;; in main()
/frameworks/rs/support/java/src/androidx/renderscript/
DScriptIntrinsicBLAS.java327 …pose int TransA, float alpha, Allocation A, Allocation X, int incX, float beta, Allocation Y, int … in SGEMV() argument
341 …e(getID(mRS), RsBlas_sgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, aID, xID, beta, yID, incX, incY, 0… in SGEMV() local
359 …se int TransA, double alpha, Allocation A, Allocation X, int incX, double beta, Allocation Y, int … in DGEMV() argument
373 …e(getID(mRS), RsBlas_dgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, aID, xID, beta, yID, incX, incY, 0… in DGEMV() local
391 …se int TransA, Float2 alpha, Allocation A, Allocation X, int incX, Float2 beta, Allocation Y, int … in CGEMV() argument
405 …sBlas_cgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha.x, alpha.y, aID, xID, beta.x, beta.y, yID, incX, i… in CGEMV()
423 … int TransA, Double2 alpha, Allocation A, Allocation X, int incX, Double2 beta, Allocation Y, int … in ZGEMV() argument
437 …sBlas_zgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha.x, alpha.y, aID, xID, beta.x, beta.y, yID, incX, i… in ZGEMV()
464 … int KL, int KU, float alpha, Allocation A, Allocation X, int incX, float beta, Allocation Y, int … in SGBMV() argument
482 …e(getID(mRS), RsBlas_sgbmv, TransA, 0, 0, 0, 0, M, N, 0, alpha, aID, xID, beta, yID, incX, incY, K… in SGBMV() local
[all …]
/frameworks/ml/nn/runtime/test/specs/V1_3/
Dsoftmax_quant8_signed.mod.py19 beta = Float32Scalar("beta", 0.00001) # close to 0 variable
23 model = model.Operation("SOFTMAX", i1, beta).To(output)
38 beta = Float32Scalar("beta", 1.) variable
42 model = model.Operation("SOFTMAX", i1, beta).To(output)
/frameworks/ml/nn/runtime/test/specs/V1_0/
Dsoftmax_float_2.mod.py5 beta = Float32Scalar("beta", 1.) variable
9 model = model.Operation("SOFTMAX", i1, beta).To(output)
Dsoftmax_quant8_2.mod.py5 beta = Float32Scalar("beta", 1.) variable
9 model = model.Operation("SOFTMAX", i1, beta).To(output)
Dsoftmax_quant8_1.mod.py5 beta = Float32Scalar("beta", 0.00001) # close to 0 variable
9 model = model.Operation("SOFTMAX", i1, beta).To(output)
Dsoftmax_float_1.mod.py5 beta = Float32Scalar("beta", 0.000001) variable
9 model = model.Operation("SOFTMAX", i1, beta).To(output)
Dlocal_response_norm_float_4.mod.py6 beta = Float32Scalar("beta", .5) variable
9 model = model.Operation("LOCAL_RESPONSE_NORMALIZATION", i1, radius, bias, alpha, beta).To(output)
Dlocal_response_norm_float_1.mod.py6 beta = Float32Scalar("beta", .5) variable
9 model = model.Operation("LOCAL_RESPONSE_NORMALIZATION", i1, radius, bias, alpha, beta).To(output)
/frameworks/ml/nn/runtime/test/specs/V1_1/
Dsoftmax_float_1_relaxed.mod.py21 beta = Float32Scalar("beta", 0.000001) variable
25 model = model.Operation("SOFTMAX", i1, beta).To(output)
Dsoftmax_float_2_relaxed.mod.py21 beta = Float32Scalar("beta", 1.) variable
25 model = model.Operation("SOFTMAX", i1, beta).To(output)
Dlocal_response_norm_float_4_relaxed.mod.py22 beta = Float32Scalar("beta", .5) variable
25 model = model.Operation("LOCAL_RESPONSE_NORMALIZATION", i1, radius, bias, alpha, beta).To(output)
Dlocal_response_norm_float_1_relaxed.mod.py22 beta = Float32Scalar("beta", .5) variable
25 model = model.Operation("LOCAL_RESPONSE_NORMALIZATION", i1, radius, bias, alpha, beta).To(output)
/frameworks/av/media/libaudioprocessing/
DAudioResamplerFirGen.h718 const double beta = computeBeta(stopBandAtten);
721 const double yscale = atten * L / (I0(beta) * M_PI);
722 const double sqrbeta = sqr(beta);
/frameworks/ml/nn/common/include/
DOperations.h80 float bias, float alpha, float beta, int32_t axis,
83 float bias, float alpha, float beta, int32_t axis, float* outputData,

12