/frameworks/ml/nn/common/include/ |
D | Utils.h | 326 void logModelToInfo(const hal::V1_0::Model& model); 327 void logModelToInfo(const hal::V1_1::Model& model); 328 void logModelToInfo(const hal::V1_2::Model& model); 329 void logModelToInfo(const hal::V1_3::Model& model); 458 bool compliantWithV1_0(const hal::V1_0::Model& model); 459 bool compliantWithV1_0(const hal::V1_1::Model& model); 460 bool compliantWithV1_0(const hal::V1_2::Model& model, 462 bool compliantWithV1_0(const hal::V1_3::Model& model, 464 bool compliantWithV1_1(const hal::V1_0::Model& model); 465 bool compliantWithV1_1(const hal::V1_1::Model& model); [all …]
|
D | MetaModel.h | 70 MetaModel(hal::Model model, bool strictSlicing) in MetaModel() 73 const hal::Model& getModel() const { return mHidlModel; } in getModel() 75 ReturnedSlice<hal::V1_0::Model> getSliceV1_0() const { return getSlice(&mSliceV1_0); } in getSliceV1_0() 76 ReturnedSlice<hal::V1_1::Model> getSliceV1_1() const { return getSlice(&mSliceV1_1); } in getSliceV1_1() 77 ReturnedSlice<hal::V1_2::Model> getSliceV1_2() const { return getSlice(&mSliceV1_2); } in getSliceV1_2() 95 hal::Model mHidlModel; 117 mutable Slice<hal::V1_0::Model> mSliceV1_0; 118 mutable Slice<hal::V1_1::Model> mSliceV1_1; 119 mutable Slice<hal::V1_2::Model> mSliceV1_2;
|
/frameworks/ml/nn/runtime/test/specs/V1_2/ |
D | resize_nearest_neighbor.mod.py | 22 model_shape = Model("shape").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 1, 1, layout).To(o1) 23 model_scale = Model("scale").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 0.5, 0.5, layout).To(o1) 43 model_shape = Model("shape").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 3, 3, layout).To(o1) 44 model_scale = Model("scale").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 1.5, 1.5, layout).To(o1) 64 model_shape = Model("shape").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 2, 2, layout).To(o1) 65 model_scale = Model("scale").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 0.8, 0.8, layout).To(o1) 85 model_shape = Model("shape").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 5, 2, layout).To(o1) 86 model_scale = Model("scale").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 2.6, 1.1, layout).To(o1) 106 model_shape = Model("shape").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 3, 3, layout).To(o1) 107 model_scale = Model("scale").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 0.9, 0.9, layout).To(o1) [all …]
|
D | resize_bilinear_v1_2.mod.py | 22 model_shape = Model("shape").Operation("RESIZE_BILINEAR", i1, 3, 3, layout).To(o1) 23 model_scale = Model("scale").Operation("RESIZE_BILINEAR", i1, 1.5, 1.5, layout).To(o1) 46 model_shape = Model("shape").Operation("RESIZE_BILINEAR", i2, 3, 3, layout).To(o2) 47 model_scale = Model("scale").Operation("RESIZE_BILINEAR", i2, 1.6, 1.6, layout).To(o2) 70 model_shape = Model("shape").Operation("RESIZE_BILINEAR", i3, 3, 3).To(o3) 71 model_scale = Model("scale").Operation("RESIZE_BILINEAR", i3, 1.8, 1.8).To(o3) 100 model = Model("zero_sized").Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3… 138 model = Model("zero_sized").Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3…
|
D | conv2d_v1_2.mod.py | 24 Model().Operation("CONV_2D", i1, f1, b1, 0, 0, 0, 0, 1, 1, 0, layout).To(o1) 52 Model().Operation("CONV_2D", i2, f2, b2, 1, 1, 1, 1, layout).To(o2) 80 Model("channel").Operation("CONV_2D", i3, f3, b3, 0, 0, 0, 0, 1, 1, 0, layout).To(o3) 108 Model("large").Operation("CONV_2D", i4, f4, b4, 0, 0, 0, 0, 1, 1, 0, layout).To(o4) 149 model_1_same = Model("1_H3_W2_SAME").Operation("CONV_2D", i5, f5, b5, 1, 1, 1, 0, layout).To(o5) 150 model_1_valid = Model("1_H3_W2_VALID").Operation("CONV_2D", i5, f5, b5, 2, 1, 1, 0, layout).To(o6) 175 model_3_same = Model("3_H3_W2_SAME").Operation("CONV_2D", i7, f7, b7, 1, 1, 1, 0, layout).To(o7) 176 model_3_valid = Model("3_H3_W2_VALID").Operation("CONV_2D", i7, f7, b7, 2, 1, 1, 0, layout).To(o8) 202 model9 = Model("quant_output_multiplier_gt_1").Operation("CONV_2D", i9, f9, b9, 2, 2, 2, 0).To(o9) 223 model = Model("zero_sized").Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3)… [all …]
|
D | expand_dims.mod.py | 24 model0 = Model().Operation("EXPAND_DIMS", input0, 0).To(output0) 25 model1 = Model().Operation("EXPAND_DIMS", input0, 1).To(output1) 26 model2 = Model().Operation("EXPAND_DIMS", input0, 2).To(output2) 27 model3 = Model().Operation("EXPAND_DIMS", input0, -1).To(output3)
|
D | roi_align.mod.py | 23 Model().Operation("ROI_ALIGN", i1, roi1, [0, 0, 0, 0], 2, 2, 2.0, 2.0, 4, 4, layout).To(o1) 58 Model().Operation("ROI_ALIGN", i2, roi2, [0, 0, 3, 3], 2, 3, 4.0, 4.0, 4, 4, layout).To(o2) 125 Model().Operation("ROI_ALIGN", i3, roi3, [0, 0, 1, 1], 2, 3, 4.0, 4.0, 0, 0, layout).To(o3) 178 Model().Operation("ROI_ALIGN", i4, roi4, [2, 2, 2, 2, 2], 2, 2, 2.0, 1.0, 0, 4, layout).To(o4) 223 model = Model("zero_sized").Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3… 251 Model().Operation("ROI_ALIGN", i4, roi4, [0], 128, 4, 1.0, 64.0, 10, 10, layout).To(o4)
|
D | softmax_v1_2.mod.py | 43 Model().Operation("SOFTMAX", i, 1.0).To(o) 46 Model().Operation("SOFTMAX", i, 0.000001).To(o) 51 Model("axis").Operation("SOFTMAX", i, 1.0, axis).To(o) 54 Model("axis").Operation("SOFTMAX", i, 0.000001, axis).To(o) 78 model = Model("zero_sized").Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3…
|
/frameworks/ml/nn/runtime/test/specs/V1_3/ |
D | resize_quant8_signed.mod.py | 22 model_shape = Model("shape").Operation("RESIZE_BILINEAR", i1, 3, 3, layout).To(o1) 23 model_scale = Model("scale").Operation("RESIZE_BILINEAR", i1, 1.5, 1.5, layout).To(o1) 46 model_shape = Model("shape").Operation("RESIZE_BILINEAR", i2, 3, 3, layout).To(o2) 47 model_scale = Model("scale").Operation("RESIZE_BILINEAR", i2, 1.6, 1.6, layout).To(o2) 70 model_shape = Model("shape").Operation("RESIZE_BILINEAR", i3, 3, 3).To(o3) 71 model_scale = Model("scale").Operation("RESIZE_BILINEAR", i3, 1.8, 1.8).To(o3) 100 model = Model("zero_sized").Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3… 138 model = Model("zero_sized").Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3… 172 model_shape = Model("shape").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 1, 1, layout).To(o1) 173 model_scale = Model("scale").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 0.5, 0.5, layout).To(o1) [all …]
|
D | depthwise_conv2d_quant8_signed.mod.py | 24 Model().Operation("DEPTHWISE_CONV_2D", i1, f1, b1, 0, 0, 0, 0, 1, 1, 2, 0, layout, 1, 1).To(o1) 52 Model().Operation("DEPTHWISE_CONV_2D", i2, f2, b2, 0, 0, 0, 0, 1, 1, 2, 0, layout, 2, 2).To(o2) 81 Model().Operation("DEPTHWISE_CONV_2D", i1, f1, b1, 2, 1, 1, 2, 0, layout, 1, 1).To(o1) 109 Model().Operation("DEPTHWISE_CONV_2D", i2, f2, b2, 2, 1, 1, 2, 0, layout, 2, 2).To(o2) 138 Model().Operation("DEPTHWISE_CONV_2D", i2, f2, b2, 1, 2, 2, 1, 0, layout, 3, 3).To(o2) 170 Model("same").Operation("DEPTHWISE_CONV_2D", i1, f1, b1, 0, 0, 0, 0, 1, 1, 1, 0).To(o1) 187 Model("different").Operation("DEPTHWISE_CONV_2D", i2, f2, b2, 0, 0, 0, 0, 1, 1, 2, 0).To(o2) 207 Model("layout").Operation("DEPTHWISE_CONV_2D", i3, f3, b3, 0, 0, 0, 0, 1, 1, 2, 0, layout).To(o3) 218 model = Model() 249 model = Model() [all …]
|
D | pad_quant8_signed.mod.py | 26 model = Model().Operation("PAD", input0, paddings).To(output0) 51 model = Model().Operation("PAD", input0, paddings).To(output0) 67 model = Model().Operation("PAD", input0, paddings).To(output0) 90 model = Model().Operation("PAD", input0, paddings).To(output0) 111 model = Model().Operation("PAD_V2", input0, paddings, pad_value).To(output0) 133 model = Model().Operation("PAD_V2", input0, paddings, pad_value).To(output0) 155 model = Model().Operation("PAD_V2", input0, paddings, pad_value).To(output0)
|
D | conv2d_quant8_signed.mod.py | 24 Model().Operation("CONV_2D", i1, f1, b1, 0, 0, 0, 0, 1, 1, 0, layout, 1, 1).To(o1) 46 Model().Operation("CONV_2D", i2, f2, b2, 0, 0, 0, 0, 1, 1, 0, layout, 3, 3).To(o2) 75 Model().Operation("CONV_2D", i1, f1, b1, 2, 1, 1, 0, layout, 1, 1).To(o1) 97 Model().Operation("CONV_2D", i2, f2, b2, 2, 1, 1, 0, layout, 3, 3).To(o2) 127 Model().Operation("CONV_2D", i3, f3, b3, 1, 2, 2, 0, layout, 3, 3).To(o3) 154 Model().Operation("CONV_2D", i1, f1, b1, 0, 0, 0, 0, 1, 1, 0).To(o1) 169 Model("layouts").Operation("CONV_2D", i2, f2, b2, 0, 0, 0, 0, 1, 1, 0, layout).To(o2) 186 model = Model("zero_sized").Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3)… 214 Model().Operation("CONV_2D", i1, f1, b1, 0, 0, 0, 0, 1, 1, 0, layout).To(o1) 242 Model().Operation("CONV_2D", i2, f2, b2, 1, 1, 1, 1, layout).To(o2) [all …]
|
D | space_to_batch_quant8_signed.mod.py | 17 model = Model() 47 model = Model() 75 model = Model() 107 model = Model() 141 Model().Operation("SPACE_TO_BATCH_ND", i1, [2, 2], pad1, layout).To(o1) 159 Model().Operation("SPACE_TO_BATCH_ND", i2, [2, 2], pad1, layout).To(o2) 178 Model().Operation("SPACE_TO_BATCH_ND", i3, [3, 2], pad3, layout).To(o3) 198 Model().Operation("SPACE_TO_BATCH_ND", i4, [3, 2], pad4, layout).To(o4)
|
D | strided_slice_quant8_signed.mod.py | 17 model = Model() 42 model = Model() 67 model = Model() 92 model = Model() 117 model = Model() 142 model = Model() 167 model = Model() 192 model = Model() 217 model = Model() 242 model = Model() [all …]
|
D | softmax_quant8_signed.mod.py | 16 model = Model() 35 model = Model() 84 Model().Operation("SOFTMAX", i, 1.0).To(o) 87 Model().Operation("SOFTMAX", i, 0.000001).To(o) 93 Model("axis").Operation("SOFTMAX", i, 1.0, axis).To(o) 96 Model("axis").Operation("SOFTMAX", i, 0.000001, axis).To(o) 109 model = Model("zero_sized").Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3…
|
D | fully_connected_quant8_signed.mod.py | 17 model = Model() 40 model = Model() 59 model = Model() 82 model = Model() 101 model = Model() 122 model = Model() 156 model = Model("zero_sized").Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3…
|
D | expand_dims_quant8_signed.mod.py | 24 model0 = Model().Operation("EXPAND_DIMS", input0, 0).To(output0) 25 model1 = Model().Operation("EXPAND_DIMS", input0, 1).To(output1) 26 model2 = Model().Operation("EXPAND_DIMS", input0, 2).To(output2) 27 model3 = Model().Operation("EXPAND_DIMS", input0, -1).To(output3)
|
D | space_to_depth_quant8_signed.mod.py | 17 model = Model() 36 model = Model() 70 Model().Operation("SPACE_TO_DEPTH", i1, 2, layout).To(o1) 88 Model().Operation("SPACE_TO_DEPTH", i2, 2, layout).To(o2) 106 Model().Operation("SPACE_TO_DEPTH", i3, 2, layout).To(o3)
|
D | depth_to_space_quant8_signed.mod.py | 17 model = Model() 37 model = Model() 71 Model().Operation("DEPTH_TO_SPACE", i1, 2, layout).To(o1) 90 Model().Operation("DEPTH_TO_SPACE", i2, 2, layout).To(o2) 109 Model().Operation("DEPTH_TO_SPACE", i3, 2, layout).To(o3)
|
D | transpose_quant8_signed.mod.py | 26 Model().Operation("TRANSPOSE_CONV_2D", i1, w1, b1, s1, 1, 32, 32, act, layout).To(o1) 60 Model().Operation("TRANSPOSE_CONV_2D", i1, w1, b1, s1, 2, 2, 2, act, layout).To(o1) 109 Model().Operation("TRANSPOSE_CONV_2D", i2, w2, b2, s2, 1, 3, 3, 1, layout).To(o2) 142 Model().Operation("TRANSPOSE_CONV_2D", i3, w3, b3, s3, 1, 1, 1, 0, layout).To(o3) 168 Model().Operation("TRANSPOSE_CONV_2D", i4, w4, b4, s4, 2, 1, 1, 0, layout).To(o4) 195 Model().Operation("TRANSPOSE_CONV_2D", i5, w5, b5, 1, 2, 2, 1, 1, 1, 0, layout).To(o5) 223 model = Model("zero_sized").Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3)… 266 model = Model("zero_sized").Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3)… 305 Model().Operation("TRANSPOSE_CONV_2D", i8, w8, b8, s8, 1, 2, 2, 0, layout).To(o8) 322 model = Model() [all …]
|
D | roi_align_quant8_signed.mod.py | 23 Model().Operation("ROI_ALIGN", i1, roi1, [0, 0, 0, 0], 2, 2, 2.0, 2.0, 4, 4, layout).To(o1) 58 Model().Operation("ROI_ALIGN", i2, roi2, [0, 0, 3, 3], 2, 3, 4.0, 4.0, 4, 4, layout).To(o2) 125 Model().Operation("ROI_ALIGN", i3, roi3, [0, 0, 1, 1], 2, 3, 4.0, 4.0, 0, 0, layout).To(o3) 178 Model().Operation("ROI_ALIGN", i4, roi4, [2, 2, 2, 2, 2], 2, 2, 2.0, 1.0, 0, 4, layout).To(o4) 223 model = Model("zero_sized").Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3… 251 Model().Operation("ROI_ALIGN", i4, roi4, [0], 128, 4, 1.0, 64.0, 10, 10, layout).To(o4)
|
D | avg_pool_quant8_signed.mod.py | 17 model = Model() 37 model = Model() 74 model = Model() 111 model = Model() 131 model = Model() 153 Model().Operation("AVERAGE_POOL_2D", i1, 0, 0, 0, 0, 1, 1, 1, 1, 0, layout).To(o1) 182 Model().Operation("AVERAGE_POOL_2D", i2, pad, pad, pad, pad, std, std, flt, flt, 0, layout).To(o2) 211 Model().Operation("AVERAGE_POOL_2D", i3, pad, pad, pad, pad, std, std, flt, flt, 0, layout).To(o3) 240 Model().Operation("AVERAGE_POOL_2D", i4, pad, pad, pad, pad, std, std, flt, flt, 3, layout).To(o4) 259 Model().Operation("AVERAGE_POOL_2D", i5, 1, 2, 2, 2, 2, 0, layout).To(o5) [all …]
|
/frameworks/compile/libbcc/include/bcc/ |
D | CompilerConfig.h | 48 llvm::CodeModel::Model mCodeModel; 52 llvm::Optional<llvm::Reloc::Model> mRelocModel; 87 inline llvm::CodeModel::Model getCodeModel() const in getCodeModel() 89 inline void setCodeModel(llvm::CodeModel::Model pCodeMode) in setCodeModel() 97 inline llvm::Optional<llvm::Reloc::Model> getRelocationModel() const in getRelocationModel() 99 inline void setRelocationModel(llvm::Reloc::Model pRelocModel) in setRelocationModel()
|
/frameworks/ml/nn/common/ |
D | MetaModel.cpp | 66 struct ModelVersion<hal::V1_0::Model> { 70 struct ModelVersion<hal::V1_1::Model> { 74 struct ModelVersion<hal::V1_2::Model> { 78 struct ModelVersion<hal::V1_3::Model> { 128 void getNoncompliantOperations(const hal::V1_3::Model& model, 131 void getNoncompliantOperations<hal::V1_0::Model>(const hal::V1_3::Model& model, in getNoncompliantOperations() 136 void getNoncompliantOperations<hal::V1_1::Model>(const hal::V1_3::Model& model, in getNoncompliantOperations() 141 void getNoncompliantOperations<hal::V1_2::Model>(const hal::V1_3::Model& model, in getNoncompliantOperations() 194 template MetaModel::ReturnedSlice<hal::V1_0::Model> MetaModel::getSlice( 195 Slice<hal::V1_0::Model>* slice) const; [all …]
|
/frameworks/ml/nn/runtime/test/ |
D | TestNeuralNetworksWrapper.h | 97 class Model { 99 Model() { in Model() function 103 ~Model() { ANeuralNetworksModel_free(mModel); } in ~Model() 108 Model(const Model&) = delete; 109 Model& operator=(const Model&) = delete; 114 Model(Model&& other) { *this = std::move(other); } in Model() function 115 Model& operator=(Model&& other) { 170 uint32_t addModelOperand(const Model* value) { in addModelOperand() 198 void setOperandValueFromModel(uint32_t index, const Model* value) { in setOperandValueFromModel() 248 static std::pair<Result, Compilation> createForDevice(const Model* model, in createForDevice() [all …]
|