Searched defs:weight (Results 1 - 25 of 58) sorted by relevance

123

/frameworks/ml/nn/runtime/test/generated/models/
H A Dlsh_projection.model.cpp11 auto weight = model->addOperand(&type2); local
19 model->addOperation(ANEURALNETWORKS_LSH_PROJECTION, {hash, lookup, weight, type_param}, {output});
22 {lookup, weight},
H A Dlsh_projection_2.model.cpp11 auto weight = model->addOperand(&type2); local
19 model->addOperation(ANEURALNETWORKS_LSH_PROJECTION, {hash, lookup, weight, type_param}, {output});
22 {lookup, weight},
H A Dlsh_projection_2_relaxed.model.cpp11 auto weight = model->addOperand(&type2); local
19 model->addOperation(ANEURALNETWORKS_LSH_PROJECTION, {hash, lookup, weight, type_param}, {output});
22 {lookup, weight},
H A Dlsh_projection_relaxed.model.cpp11 auto weight = model->addOperand(&type2); local
19 model->addOperation(ANEURALNETWORKS_LSH_PROJECTION, {hash, lookup, weight, type_param}, {output});
22 {lookup, weight},
H A Dlsh_projection_weights_as_inputs.model.cpp11 auto weight = model->addOperand(&type2); local
17 model->addOperation(ANEURALNETWORKS_LSH_PROJECTION, {hash, lookup, weight, type_param}, {output});
20 {hash, lookup, weight},
H A Dlsh_projection_weights_as_inputs_relaxed.model.cpp11 auto weight = model->addOperand(&type2); local
17 model->addOperation(ANEURALNETWORKS_LSH_PROJECTION, {hash, lookup, weight, type_param}, {output});
20 {hash, lookup, weight},
/frameworks/ml/nn/runtime/test/specs/V1_0/
H A Dlsh_projection.mod.py26 weight = Input("weight", "TENSOR_FLOAT32", "{%d}" % (num_input)) variable
29 model = model.Operation("LSH_PROJECTION", hhash, lookup, weight,
32 #TODO: weight should be a constant, too.
35 weight: [0.12, 0.34, 0.56]
H A Dlsh_projection_2.mod.py26 weight = Input("weight", "TENSOR_FLOAT32", "{%d}" % (num_input)) variable
29 model = model.Operation("LSH_PROJECTION", hhash, lookup, weight,
32 # Omit weight, since this is a sparse projection, for which the optional weight
36 weight: [],
H A Dlsh_projection_weights_as_inputs.mod.py25 weight = Input("weight", "TENSOR_FLOAT32", "{%d}" % (num_input)) variable
28 model = model.Operation("LSH_PROJECTION", hhash, lookup, weight, type_param).To(output)
32 weight: [0.12, 0.34, 0.56],
/frameworks/ml/nn/runtime/test/specs/V1_1/
H A Dlsh_projection_2_relaxed.mod.py26 weight = Input("weight", "TENSOR_FLOAT32", "{%d}" % (num_input)) variable
29 model = model.Operation("LSH_PROJECTION", hhash, lookup, weight,
33 # Omit weight, since this is a sparse projection, for which the optional weight
37 weight: [],
H A Dlsh_projection_relaxed.mod.py26 weight = Input("weight", "TENSOR_FLOAT32", "{%d}" % (num_input)) variable
29 model = model.Operation("LSH_PROJECTION", hhash, lookup, weight,
33 #TODO: weight should be a constant, too.
36 weight: [0.12, 0.34, 0.56]
H A Dlsh_projection_weights_as_inputs_relaxed.mod.py25 weight = Input("weight", "TENSOR_FLOAT32", "{%d}" % (num_input)) variable
28 model = model.Operation("LSH_PROJECTION", hhash, lookup, weight, type_param).To(output)
33 weight: [0.12, 0.34, 0.56],
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/vo/
H A DAvgWeightByAge.java34 public AvgWeightByAge(int age, float weight) { argument
36 mWeight = weight;
51 public void setWeight(float weight) { argument
52 mWeight = weight;
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DHistoryEvaluator.java62 sumValue += data.evaluation * data.weight;
63 sumWeight += data.weight;
91 list.get(i).weight *= factor;
95 while (!list.isEmpty() && isZero(list.get(0).weight)) {
105 * For each stroke it holds its initial value and the current weight. Initially the
106 * weight is set to 1.0
110 public float weight; field in class:HistoryEvaluator.Data
114 weight = 1.0f;
/frameworks/minikin/include/minikin/
H A DFontStyle.h44 constexpr explicit FontStyle(Weight weight) : FontStyle(weight, Slant::UPRIGHT) {} argument
46 constexpr FontStyle(Weight weight, Slant slant) argument
47 : FontStyle(static_cast<uint16_t>(weight), slant) {}
48 constexpr FontStyle(uint16_t weight, Slant slant) : mWeight(weight), mSlant(slant) {} argument
50 constexpr uint16_t weight() const { return mWeight; } function in class:minikin::FontStyle
54 return weight() == other.weight() && slant() == other.slant();
58 return (static_cast<uint32_t>(weight()) << 1
[all...]
/frameworks/ml/nn/common/operations/
H A DLSHProjection.cpp61 RunTimeOperandInfo *weight = GetInput(operation, operands, kWeightTensor); local
63 NN_CHECK_EQ(NumDimensions(weight), 1);
64 NN_CHECK_EQ(SizeOfDimension(weight, 0), SizeOfDimension(input, 0));
79 // Compute sign bit of dot product of hash(seed, input) and weight.
85 const RunTimeOperandInfo* weight, float seed) {
103 if (weight->lifetime == OperandLifeTime::NO_VALUE) {
106 score += reinterpret_cast<float*>(weight->buffer)[i] * running_value;
115 const RunTimeOperandInfo* weight, int32_t* out_buf) {
122 int bit = running_sign_bit(input, weight, seed);
131 const RunTimeOperandInfo* weight, int32_
84 running_sign_bit(const RunTimeOperandInfo* input, const RunTimeOperandInfo* weight, float seed) argument
113 SparseLshProjection(const RunTimeOperandInfo* hash, const RunTimeOperandInfo* input, const RunTimeOperandInfo* weight, int32_t* out_buf) argument
129 DenseLshProjection(const RunTimeOperandInfo* hash, const RunTimeOperandInfo* input, const RunTimeOperandInfo* weight, int32_t* out_buf) argument
[all...]
/frameworks/support/compat/src/main/java/androidx/core/graphics/
H A DTypefaceCompatApi24Impl.java110 int weight, boolean style) {
113 family, buffer, ttcIndex, null /* variation axis */, weight, style);
109 addFontWeightStyle(Object family, ByteBuffer buffer, int ttcIndex, int weight, boolean style) argument
/frameworks/support/tv-provider/src/main/java/androidx/tvprovider/media/tv/
H A DPreviewProgram.java227 * Sets the weight of the preview program within the channel.
229 * @param weight The value of {@link PreviewPrograms#COLUMN_WEIGHT} for the program.
232 public Builder setWeight(int weight) { argument
233 mValues.put(PreviewPrograms.COLUMN_WEIGHT, weight);
/frameworks/base/core/jni/android/graphics/
H A DTypeface.cpp54 jint weight, jboolean italic) {
55 return toJLong(Typeface::createAbsolute(toTypeface(nativeInstance), weight, italic));
73 static jlong Typeface_createWeightAlias(JNIEnv* env, jobject, jlong familyHandle, jint weight) { argument
74 return toJLong(Typeface::createWithDifferentBaseWeight(toTypeface(familyHandle), weight));
93 return toTypeface(faceHandle)->fStyle.weight();
97 int weight, int italic) {
105 return toJLong(Typeface::createFromFamilies(std::move(familyVec), weight, italic));
53 Typeface_createFromTypefaceWithExactStyle(JNIEnv* env, jobject, jlong nativeInstance, jint weight, jboolean italic) argument
96 Typeface_createFromArray(JNIEnv *env, jobject, jlongArray familyArray, int weight, int italic) argument
/frameworks/base/graphics/java/android/graphics/
H A DFontFamily.java104 public boolean addFont(String path, int ttcIndex, FontVariationAxis[] axes, int weight, argument
118 return nAddFont(mBuilderPtr, fontBuffer, ttcIndex, weight, italic);
126 int weight, int italic) {
135 return nAddFontWeightStyle(mBuilderPtr, font, ttcIndex, weight, italic);
144 * @param weight The weight of the font. If 0 is given, the weight and italic will be resolved
146 * @param isItalic Whether this font is italic. If the weight is set to 0, this will be resolved
151 boolean isAsset, int ttcIndex, int weight, int isItalic,
161 return nAddFontFromAssetManager(mBuilderPtr, mgr, path, cookie, isAsset, ttcIndex, weight,
125 addFontFromBuffer(ByteBuffer font, int ttcIndex, FontVariationAxis[] axes, int weight, int italic) argument
150 addFontFromAssetManager(AssetManager mgr, String path, int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic, FontVariationAxis[] axes) argument
182 nAddFont(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic) argument
184 nAddFontWeightStyle(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic) argument
186 nAddFontFromAssetManager(long builderPtr, AssetManager mgr, String path, int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic) argument
[all...]
/frameworks/base/libs/hwui/
H A DInterpolator.cpp141 float ipart, weight; local
142 weight = modff(lutpos, &ipart);
150 " i1=%d, i2=%d, input=%f, lutpos=%f, size=%zu, values=%p, ipart=%f, weight=%f",
151 i1, i2, input, lutpos, mSize, mValues.get(), ipart, weight);
156 return MathUtils::lerp(v1, v2, weight);
/frameworks/base/libs/hwui/hwui/
H A DTypeface.cpp37 static Typeface::Style computeAPIStyle(int weight, bool italic) { argument
39 if (weight >= SkFontStyle::kSemiBold_Weight) {
46 static minikin::FontStyle computeMinikinStyle(int weight, bool italic) { argument
47 return minikin::FontStyle(uirenderer::MathUtils::clamp(weight, 1, 1000),
51 // Resolve the relative weight from the baseWeight and target style.
53 int weight = baseWeight; local
55 weight += 300;
58 return computeMinikinStyle(weight, italic);
80 Typeface* Typeface::createAbsolute(Typeface* base, int weight, bool italic) { argument
86 result->fAPIStyle = computeAPIStyle(weight, itali
113 createWithDifferentBaseWeight(Typeface* src, int weight) argument
125 createFromFamilies(std::vector<std::shared_ptr<minikin::FontFamily>>&& families, int weight, int italic) argument
[all...]
/frameworks/base/libs/hwui/tests/macrobench/
H A DTestSceneRunner.cpp45 explicit ModifiedMovingAverage(int weight) : mWeight(weight) {} argument
/frameworks/minikin/libs/minikin/
H A DFontUtils.cpp34 bool analyzeStyle(const uint8_t* os2_data, size_t os2_size, int* weight, bool* italic) { argument
42 *weight = weightClass;
/frameworks/minikin/tests/util/
H A DFontTestUtils.cpp76 uint16_t weight = atoi((const char*)(xmlGetProp(fontNode, (const xmlChar*)"weight"))); local
93 FontStyle style(weight, italic);

Completed in 344 milliseconds

123