Home
last modified time | relevance | path

Searched refs:shape1 (Results 1 – 5 of 5) sorted by relevance

/aosp12/packages/modules/NeuralNetworks/common/operations/
H A DBroadcast.cpp83 std::vector<float> in1_float32(getNumberOfElements(shape1)); in binaryOperationFloat16()
99 bool needBroadcast = !SameShape(shape1, shape2); in addFloat32()
133 const bool needBroadcast = !SameShape(shape1, shape2); in addQuant8()
135 const int32_t input1_offset = -shape1.offset; in addQuant8()
140 const double real_input1_multiplier = shape1.scale / twice_max_input_scale; in addQuant8()
238 bool needBroadcast = !SameShape(shape1, shape2); in mulFloat32()
272 const int32_t input1_offset = -shape1.offset; in mulQuant8()
275 const double input_product_scale = shape1.scale * shape2.scale; in mulQuant8()
344 const int32_t input1_offset = -shape1.offset; in subQuant8()
349 const double real_input1_multiplier = shape1.scale / twice_max_input_scale; in subQuant8()
[all …]
H A DMaximumMinimum.cpp95 bool eval(const void* in1, const Shape& shape1, const void* in2, const Shape& shape2, in eval() argument
98 switch (shape1.type) { in eval()
100 return evalGeneric(reinterpret_cast<const _Float16*>(in1), shape1, in eval()
105 return evalGeneric(reinterpret_cast<const float*>(in1), shape1, in eval()
110 return evalGeneric(reinterpret_cast<const int32_t*>(in1), shape1, in eval()
115 return evalQuant8(reinterpret_cast<const uint8_t*>(in1), shape1, in eval()
120 return evalQuant8(reinterpret_cast<const int8_t*>(in1), shape1, in eval()
125 LOG(ERROR) << "Unsupported data type: " << shape1.type; in eval()
H A DMaximumMinimum.h28 bool eval(const void* in1, const Shape& shape1, const void* in2, const Shape& shape2,
/aosp12/frameworks/layoutlib/bridge/src/android/graphics/
H A DRegion_Delegate.java79 public static Area combineShapes(Shape shape1, Shape shape2, int regionOp) { in combineShapes() argument
82 if (shape1 == null) { in combineShapes()
87 Area result = new Area(shape1); in combineShapes()
93 if (shape1 == null) { in combineShapes()
98 Area result = new Area(shape1); in combineShapes()
104 if (shape1 == null) { in combineShapes()
109 Area result = new Area(shape1); in combineShapes()
115 if (shape1 == null) { in combineShapes()
120 Area result = new Area(shape1); in combineShapes()
128 if (shape1 != null) { in combineShapes()
[all …]
/aosp12/packages/modules/NeuralNetworks/common/
H A DUtilsTest.cpp42 Shape shape1; in TEST() local
44 shape1.dimensions = {4, 3, 2, 1}; in TEST()
51 EXPECT_TRUE(calculateBroadcastedShape(shape1, shape2, &actualOutputShape)); in TEST()
54 EXPECT_TRUE(calculateBroadcastedShape(shape2, shape1, &actualOutputShape)); in TEST()
59 Shape shape1; in TEST() local
61 shape1.dimensions = {5}; in TEST()
65 EXPECT_FALSE(calculateBroadcastedShape(shape1, shape2, &actualOutputShape)); in TEST()
66 EXPECT_FALSE(calculateBroadcastedShape(shape2, shape1, &actualOutputShape)); in TEST()