Home
last modified time | relevance | path

Searched refs:Model (Results 1 – 25 of 826) sorted by relevance

12345678910>>...34

/packages/modules/NeuralNetworks/common/include/
DLegacyHalUtils.h164 void logModelToInfo(const V1_0::Model& model);
165 void logModelToInfo(const V1_1::Model& model);
166 void logModelToInfo(const V1_2::Model& model);
167 void logModelToInfo(const V1_3::Model& model);
219 bool compliantWithV1_0(const V1_0::Model& model);
220 bool compliantWithV1_0(const V1_1::Model& model);
221 bool compliantWithV1_0(const V1_2::Model& model,
223 bool compliantWithV1_0(const V1_3::Model& model,
225 bool compliantWithV1_1(const V1_0::Model& model);
226 bool compliantWithV1_1(const V1_1::Model& model);
[all …]
DMetaModel.h69 using ReturnedSlice = std::optional<std::pair<Model, Mapper>>;
72 MetaModel(Model model, bool strictSlicing);
74 const Model& getModel() const { return mModel; } in getModel()
94 Model mModel;
109 Model mModel;
/packages/modules/NeuralNetworks/runtime/test/specs/V1_3/
Dresize_quant8_signed.mod.py22 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 …]
Ddepthwise_conv2d_quant8_signed.mod.py24 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 …]
Dconv2d_quant8_signed.mod.py24 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 …]
Dstrided_slice_quant8_signed.mod.py17 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 …]
Dpad_quant8_signed.mod.py26 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)
Dspace_to_batch_quant8_signed.mod.py17 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)
Dsoftmax_quant8_signed.mod.py16 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…
Dtranspose_quant8_signed.mod.py26 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 …]
Dfully_connected_quant8_signed.mod.py17 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…
Davg_pool_quant8_signed.mod.py17 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 …]
Droi_align_quant8_signed.mod.py23 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)
Dtranspose_conv2d_quant8_signed.mod.py26 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)
141 Model().Operation("TRANSPOSE_CONV_2D", i3, w3, b3, s3, 1, 1, 1, 0, layout).To(o3)
167 Model().Operation("TRANSPOSE_CONV_2D", i4, w4, b4, s4, 2, 1, 1, 0, layout).To(o4)
194 Model().Operation("TRANSPOSE_CONV_2D", i5, w5, b5, 1, 2, 2, 1, 1, 1, 0, layout).To(o5)
222 model = Model("zero_sized").Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3)…
265 model = Model("zero_sized").Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3)…
304 Model().Operation("TRANSPOSE_CONV_2D", i8, w8, b8, s8, 1, 2, 2, 0, layout).To(o8)
Ddepth_to_space_quant8_signed.mod.py17 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)
/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/
Dresize_nearest_neighbor.mod.py22 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 …]
Dresize_bilinear_v1_2.mod.py22 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…
Dconv2d_v1_2.mod.py24 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 …]
Droi_align.mod.py23 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)
/packages/modules/NeuralNetworks/common/
DModelUtils.cpp79 std::vector<bool> identifyUsedOperands(const Model& model) { in identifyUsedOperands()
95 void identifyUsedSubgraphs(uint32_t current, const std::vector<Model::Subgraph>& subgraphs,
102 const std::vector<Model::Subgraph>& subgraphs, std::vector<bool>* used) { in identifyUsedSubgraphs()
116 void identifyUsedSubgraphs(uint32_t current, const std::vector<Model::Subgraph>& subgraphs, in identifyUsedSubgraphs()
134 std::vector<bool> identifyUsedSubgraphs(const Model& model) { in identifyUsedSubgraphs()
144 void identifyUsedPools(const Model::Subgraph& subgraph, std::vector<bool>* used) { in identifyUsedPools()
155 std::vector<bool> identifyUsedPools(const Model& model) { in identifyUsedPools()
168 void fixOperandDataLocation(Operand* operand, Model::OperandValues* newOperandValues, in fixOperandDataLocation()
169 const Model::OperandValues& oldOperandValues, in fixOperandDataLocation()
202 void fixOperandDataLocations(std::vector<Operand>* operands, Model::OperandValues* newOperandValues, in fixOperandDataLocations()
[all …]
DLegacyHalUtils.cpp124 void logModelToInfo(const V1_0::Model& model) { in logModelToInfo()
134 void logModelToInfo(const V1_1::Model& model) { in logModelToInfo()
144 void logModelToInfo(const V1_2::Model& model) { in logModelToInfo()
163 void logModelToInfo(const V1_3::Model& model) { in logModelToInfo()
785 static bool compliantWith(HalVersion version, const V1_3::Model& model, in compliantWith()
859 bool compliantWithV1_0(const V1_0::Model& /*model*/) { in compliantWithV1_0() argument
863 bool compliantWithV1_0(const V1_1::Model& model) { in compliantWithV1_0()
884 bool compliantWithV1_0(const V1_2::Model& model, std::set<uint32_t>* noncompliantOperations) { in compliantWithV1_0()
888 bool compliantWithV1_0(const V1_3::Model& model, std::set<uint32_t>* noncompliantOperations) { in compliantWithV1_0()
892 bool compliantWithV1_1(const V1_0::Model&) { in compliantWithV1_1() argument
[all …]
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/homescreen/assistive/
DAssistiveCardPresenter.java40 private List<HomeCardInterface.Model> mModels;
69 for (HomeCardInterface.Model model : mModels) {
78 for (HomeCardInterface.Model model : mModels) {
86 HomeCardInterface.Model.OnModelUpdateListener mOnModelUpdateListener =
87 new HomeCardInterface.Model.OnModelUpdateListener() {
89 public void onModelUpdate(HomeCardInterface.Model model) {
96 for (HomeCardInterface.Model candidate : mModels) {
123 public void setModels(List<HomeCardInterface.Model> models) { in setModels()
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/
DTestUtils.cpp44 Result<Operand> createOperand(const TestOperand& operand, Model::OperandValues* operandValues, in createOperand()
96 Result<Model::Subgraph> createSubgraph(const TestSubgraph& testSubgraph, in createSubgraph()
97 Model::OperandValues* operandValues, in createSubgraph()
116 return Model::Subgraph{.operands = std::move(operands), in createSubgraph()
124 GeneralResult<Model> createModel(const TestModel& testModel) { in createModel()
125 Model::OperandValues operandValues; in createModel()
128 Model::Subgraph mainSubgraph = in createModel()
130 std::vector<Model::Subgraph> refSubgraphs; in createModel()
143 return Model{.main = std::move(mainSubgraph), in createModel()
/packages/modules/NeuralNetworks/runtime/test/
DTestNeuralNetworksWrapper.h103 class Model {
105 Model() { in Model() function
109 ~Model() { ANeuralNetworksModel_free(mModel); } in ~Model()
114 Model(const Model&) = delete;
115 Model& operator=(const Model&) = delete;
120 Model(Model&& other) { *this = std::move(other); } in Model() function
121 Model& operator=(Model&& other) {
176 uint32_t addModelOperand(const Model* value) { in addModelOperand()
204 void setOperandValueFromModel(uint32_t index, const Model* value) { in setOperandValueFromModel()
254 static std::pair<Result, Compilation> createForDevice(const Model* model, in createForDevice()
[all …]
/packages/modules/NeuralNetworks/driver/sample_hidl/
DSampleDriver.h77 hardware::Return<void> getSupportedOperations(const V1_0::Model& model,
79 hardware::Return<void> getSupportedOperations_1_1(const V1_1::Model& model,
81 hardware::Return<void> getSupportedOperations_1_2(const V1_2::Model& model,
85 const V1_0::Model& model, const sp<V1_0::IPreparedModelCallback>& callback) override;
87 const V1_1::Model& model, V1_1::ExecutionPreference preference,
90 const V1_2::Model& model, V1_1::ExecutionPreference preference,
95 const V1_3::Model& model, V1_1::ExecutionPreference preference, V1_3::Priority priority,
129 SamplePreparedModel(const V1_3::Model& model, const SampleDriver* driver, in SamplePreparedModel()
170 const V1_3::Model* getModel() const { return &mModel; } in getModel()
173 V1_3::Model mModel;

12345678910>>...34