Searched refs:shape2 (Results 1 – 5 of 5) sorted by relevance
/frameworks/ml/nn/common/operations/ |
D | Broadcast.cpp | 65 const float* in1, const Shape& shape1, const float* in2, const Shape& shape2, 69 const Shape& shape2, int32_t activation, _Float16* out, in binaryOperationFloat16() argument 73 std::vector<float> in2_float32(getNumberOfElements(shape2)); in binaryOperationFloat16() 77 operationFloat32(in1_float32.data(), shape1, in2_float32.data(), shape2, activation, in binaryOperationFloat16() 84 bool addFloat32(const float* in1, const Shape& shape1, const float* in2, const Shape& shape2, in addFloat32() argument 87 bool needBroadcast = !SameShape(shape1, shape2); in addFloat32() 92 in1, convertShapeToDims(shape1), in2, convertShapeToDims(shape2), out, \ in addFloat32() 101 in1, convertShapeToDims(shape1), in2, convertShapeToDims(shape2), out, \ in addFloat32() 111 bool addFloat16(const _Float16* in1, const Shape& shape1, const _Float16* in2, const Shape& shape2, in addFloat16() argument 114 return binaryOperationFloat16(in1, shape1, in2, shape2, activation, out, shapeOut, &addFloat32); in addFloat16() [all …]
|
D | MaximumMinimum.cpp | 91 bool eval(const void* in1, const Shape& shape1, const void* in2, const Shape& shape2, in eval() argument 97 reinterpret_cast<const _Float16*>(in2), shape2, isMinimum, in eval() 102 reinterpret_cast<const float*>(in2), shape2, isMinimum, in eval() 107 reinterpret_cast<const int32_t*>(in2), shape2, isMinimum, in eval() 112 reinterpret_cast<const uint8_t*>(in2), shape2, isMinimum, in eval()
|
D | MaximumMinimum.h | 28 bool eval(const void* in1, const Shape& shape1, const void* in2, const Shape& shape2,
|
/frameworks/ml/nn/common/ |
D | UtilsTest.cpp | 31 Shape shape2; in TEST() local 33 shape2.dimensions = {3, 1, 5}; in TEST() 39 EXPECT_TRUE(calculateBroadcastedShape(shape1, shape2, &actualOutputShape)); in TEST() 42 EXPECT_TRUE(calculateBroadcastedShape(shape2, shape1, &actualOutputShape)); in TEST() 48 Shape shape2; in TEST() local 50 shape2.dimensions = {3}; in TEST() 53 EXPECT_FALSE(calculateBroadcastedShape(shape1, shape2, &actualOutputShape)); in TEST() 54 EXPECT_FALSE(calculateBroadcastedShape(shape2, shape1, &actualOutputShape)); in TEST()
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Region_Delegate.java | 79 public static Area combineShapes(Shape shape1, Shape shape2, int regionOp) { in combineShapes() argument 88 result.subtract(shape2 instanceof Area ? (Area) shape2 : new Area(shape2)); in combineShapes() 94 return new Area(shape2); in combineShapes() 99 result.intersect(shape2 instanceof Area ? (Area) shape2 : new Area(shape2)); in combineShapes() 105 return new Area(shape2); in combineShapes() 110 result.add(shape2 instanceof Area ? (Area) shape2 : new Area(shape2)); in combineShapes() 116 return new Area(shape2); in combineShapes() 121 result.exclusiveOr(shape2 instanceof Area ? (Area) shape2 : new Area(shape2)); in combineShapes() 126 Area result = new Area(shape2); in combineShapes()
|