/aosp12/packages/modules/NeuralNetworks/common/include/ |
H A D | LegacyHalUtils.h | 260 V1_0::Model convertToV1_0(const V1_0::Model& model); 261 V1_0::Model convertToV1_0(const V1_1::Model& model); 262 V1_0::Model convertToV1_0(const V1_2::Model& model); 263 V1_0::Model convertToV1_0(const V1_3::Model& model); 264 V1_1::Model convertToV1_1(const V1_0::Model& model); 265 V1_1::Model convertToV1_1(const V1_1::Model& model); 266 V1_1::Model convertToV1_1(const V1_2::Model& model); 267 V1_1::Model convertToV1_1(const V1_3::Model& model); 268 V1_2::Model convertToV1_2(const V1_0::Model& model); 347 Model uncheckedConvert(const V1_3::Model& model); [all …]
|
/aosp12/hardware/interfaces/neuralnetworks/1.0/vts/functional/ |
H A D | ValidateModel.cpp | 32 using PrepareModelMutation = std::function<void(Model*)>; 37 const Model& model) { in validateGetSupportedOperations() 48 const Model& model) { in validatePrepareModel() 68 Model model = originalModel; in validate() 75 static uint32_t addOperand(Model* model) { in addOperand() 88 static uint32_t addOperand(Model* model, OperandLifeTime lifetime) { in addOperand() 127 static void becomeConstantCopy(Model* model, Operand* operand) { in becomeConstantCopy() 216 size_t sizeForBinder(const Model& model) { in sizeForBinder() 809 static void removeOperand(Model* model, uint32_t index) { in removeOperand() 829 static void removeOperation(Model* model, uint32_t index) { in removeOperation() [all …]
|
/aosp12/hardware/interfaces/neuralnetworks/1.1/vts/functional/ |
H A D | ValidateModel.cpp | 39 using PrepareModelMutation = std::function<void(Model*, ExecutionPreference*)>; 44 const Model& model) { in validateGetSupportedOperations() 83 Model model = originalModel; in validate() 94 static uint32_t addOperand(Model* model) { in addOperand() 107 static uint32_t addOperand(Model* model, OperandLifeTime lifetime) { in addOperand() 118 static size_t constantCopyExtraSize(const Model& model, size_t operandSize) { in constantCopyExtraSize() 146 static void becomeConstantCopy(Model* model, Operand* operand) { in becomeConstantCopy() 235 size_t sizeForBinder(const Model& model) { in sizeForBinder() 849 static void removeOperand(Model* model, uint32_t index) { in removeOperand() 869 static void removeOperation(Model* model, uint32_t index) { in removeOperation() [all …]
|
/aosp12/packages/modules/NeuralNetworks/runtime/test/specs/V1_3/ |
H A 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) 172 model_shape = Model("shape").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 1, 1, layout).To(o1) 193 model_shape = Model("shape").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 3, 3, layout).To(o1) 214 model_shape = Model("shape").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 2, 2, layout).To(o1) 235 model_shape = Model("shape").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 5, 2, layout).To(o1) [all …]
|
H A 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) 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) 218 model = Model() 249 model = Model() 278 model = Model() 310 model = Model() 339 model = Model() [all …]
|
H A D | conv2d_quant8_signed.mod.py | 75 Model().Operation("CONV_2D", i1, f1, b1, 2, 1, 1, 0, layout, 1, 1).To(o1) 154 Model().Operation("CONV_2D", i1, f1, b1, 0, 0, 0, 0, 1, 1, 0).To(o1) 242 Model().Operation("CONV_2D", i2, f2, b2, 1, 1, 1, 1, layout).To(o2) 435 model = Model() 466 model = Model() 487 model = Model() 514 model = Model() 542 model = Model() 578 model = Model() 607 model = Model() [all …]
|
H A 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)
|
H A 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 …]
|
H A 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)
|
H A 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…
|
/aosp12/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/ |
H A 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) 106 model_shape = Model("shape").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 3, 3, layout).To(o1) 127 model_shape = Model("shape").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 2, 5, layout).To(o1) 148 model_shape = Model("shape").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 4, 4, layout).To(o1) [all …]
|
H A 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…
|
H A 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 …]
|
/aosp12/hardware/interfaces/neuralnetworks/1.2/vts/functional/ |
H A D | ValidateModel.cpp | 39 using PrepareModelMutation = std::function<void(Model*, ExecutionPreference*)>; 44 const Model& model) { in validateGetSupportedOperations() 84 Model model = originalModel; in validate() 95 static uint32_t addOperand(Model* model) { in addOperand() 108 static uint32_t addOperand(Model* model, OperandLifeTime lifetime) { in addOperand() 147 static void becomeConstantCopy(Model* model, Operand* operand) { in becomeConstantCopy() 273 size_t sizeForBinder(const Model& model) { in sizeForBinder() 990 static void removeOperand(Model* model, uint32_t index) { in removeOperand() 1000 static bool removeOperandSkip(size_t operand, const Model& model) { in removeOperandSkip() 1038 static void removeOperation(Model* model, uint32_t index) { in removeOperation() [all …]
|
/aosp12/hardware/interfaces/neuralnetworks/1.3/vts/functional/ |
H A D | ValidateModel.cpp | 45 const Model& model) { in validateGetSupportedOperations() 90 Model model = originalModel; in validate() 102 static uint32_t addOperand(Model* model) { in addOperand() 115 static uint32_t addOperand(Model* model, OperandLifeTime lifetime) { in addOperand() 126 static size_t constantCopyExtraSize(const Model& model, size_t operandSize) { in constantCopyExtraSize() 154 static void becomeConstantCopy(Model* model, Operand* operand) { in becomeConstantCopy() 292 size_t sizeForBinder(const Model& model) { in sizeForBinder() 1058 static void removeOperand(Model* model, uint32_t index) { in removeOperand() 1068 static bool removeOperandSkip(size_t operandIndex, const Model& model) { in removeOperandSkip() 1118 static void removeOperation(Model* model, uint32_t index) { in removeOperation() [all …]
|
/aosp12/hardware/interfaces/neuralnetworks/aidl/vts/functional/ |
H A D | ValidateModel.cpp | 96 Model model = utils::clone(originalModel).value(); in validate() 108 static uint32_t addOperand(Model* model) { in addOperand() 120 static uint32_t addOperand(Model* model, OperandLifeTime lifetime) { in addOperand() 158 static void becomeConstantCopy(Model* model, Operand* operand) { in becomeConstantCopy() 299 size_t sizeForBinder(const Model& model) { in sizeForBinder() 676 const Model& model) { in mutateOperandInputOutputTest() 995 const Model& model, in mutateOperationRemoveWriteTest() 1037 static void removeOperand(Model* model, uint32_t index) { in removeOperand() 1098 static void removeOperation(Model* model, uint32_t index) { in removeOperation() 1284 const Model& model) { in mutateExecutionPreferenceTest() [all …]
|
/aosp12/hardware/interfaces/neuralnetworks/1.1/utils/include/nnapi/hal/1.1/ |
H A D | Conversions.h | 30 GeneralResult<Model> unvalidatedConvert(const hal::V1_1::Model& model); 35 GeneralResult<Model> convert(const hal::V1_1::Model& model); 46 nn::GeneralResult<Model> unvalidatedConvert(const nn::Model& model); 51 nn::GeneralResult<Model> convert(const nn::Model& model);
|
/aosp12/packages/apps/Car/Launcher/src/com/android/car/carlauncher/homescreen/assistive/ |
H A D | AssistiveCardPresenter.java | 31 private HomeCardInterface.Model mCurrentModel; 32 private List<HomeCardInterface.Model> mModels; 35 public void setModels(List<HomeCardInterface.Model> models) { in setModels() 44 for (HomeCardInterface.Model model : mModels) { in onViewCreated() 56 for (HomeCardInterface.Model model : mModels) { in onViewDestroyed() 74 public void onModelUpdated(HomeCardInterface.Model model) { in onModelUpdated() 79 for (HomeCardInterface.Model candidate : mModels) { in onModelUpdated()
|
/aosp12/hardware/interfaces/neuralnetworks/1.0/utils/include/nnapi/hal/1.0/ |
H A D | Conversions.h | 37 GeneralResult<Model::OperandValues> unvalidatedConvert( 40 GeneralResult<Model> unvalidatedConvert(const hal::V1_0::Model& model); 48 GeneralResult<Model> convert(const hal::V1_0::Model& model); 67 const nn::Model::OperandValues& operandValues); 69 nn::GeneralResult<Model> unvalidatedConvert(const nn::Model& model); 77 nn::GeneralResult<Model> convert(const nn::Model& model);
|
/aosp12/hardware/interfaces/neuralnetworks/1.2/utils/include/nnapi/hal/1.2/ |
H A D | Conversions.h | 39 GeneralResult<Model> unvalidatedConvert(const hal::V1_2::Model& model); 40 GeneralResult<Model::ExtensionNameAndPrefix> unvalidatedConvert( 41 const hal::V1_2::Model::ExtensionNameAndPrefix& extensionNameAndPrefix); 52 GeneralResult<Model> convert(const hal::V1_2::Model& model); 80 nn::GeneralResult<Model> unvalidatedConvert(const nn::Model& model); 81 nn::GeneralResult<Model::ExtensionNameAndPrefix> unvalidatedConvert( 82 const nn::Model::ExtensionNameAndPrefix& extensionNameAndPrefix); 93 nn::GeneralResult<Model> convert(const nn::Model& model);
|
/aosp12/hardware/interfaces/neuralnetworks/utils/adapter/include/nnapi/hal/ |
H A D | Device.h | 53 Return<void> getSupportedOperations(const V1_0::Model& model, 55 Return<void> getSupportedOperations_1_1(const V1_1::Model& model, 57 Return<void> getSupportedOperations_1_2(const V1_2::Model& model, 59 Return<void> getSupportedOperations_1_3(const V1_3::Model& model, 63 const V1_0::Model& model, const sp<V1_0::IPreparedModelCallback>& callback) override; 65 const V1_1::Model& model, V1_1::ExecutionPreference preference, 68 const V1_2::Model& model, V1_1::ExecutionPreference preference, 72 const V1_3::Model& model, V1_1::ExecutionPreference preference, V1_3::Priority priority,
|
/aosp12/packages/apps/Car/Launcher/src/com/android/car/carlauncher/homescreen/audio/ |
H A D | HomeAudioCardPresenter.java | 35 private HomeCardInterface.Model mCurrentModel; 36 private List<HomeCardInterface.Model> mModelList; 40 public void setModels(List<HomeCardInterface.Model> models) { in setModels() 49 for (HomeCardInterface.Model model : mModelList) { in onViewCreated() 64 for (HomeCardInterface.Model model : mModelList) { in onViewDestroyed() 87 public void onModelUpdated(HomeCardInterface.Model model) { in onModelUpdated()
|
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/ |
H A D | Conversions.h | 76 GeneralResult<Model> unvalidatedConvert(const aidl_hal::Model& model); 77 GeneralResult<Model::ExtensionNameAndPrefix> unvalidatedConvert( 79 GeneralResult<Model::OperandValues> unvalidatedConvert(const std::vector<uint8_t>& operandValues); 80 GeneralResult<Model::Subgraph> unvalidatedConvert(const aidl_hal::Subgraph& subgraph); 111 GeneralResult<Model> convert(const aidl_hal::Model& model); 148 nn::GeneralResult<Subgraph> unvalidatedConvert(const nn::Model::Subgraph& subgraph); 150 const nn::Model::OperandValues& operandValues); 152 const nn::Model::ExtensionNameAndPrefix& extensionNameToPrefix); 153 nn::GeneralResult<Model> unvalidatedConvert(const nn::Model& model); 173 nn::GeneralResult<Model> convert(const nn::Model& model);
|
/aosp12/hardware/interfaces/neuralnetworks/1.1/utils/src/ |
H A D | Conversions.cpp | 98 GeneralResult<Model> unvalidatedConvert(const hal::V1_1::Model& model) { in unvalidatedConvert() 113 auto main = Model::Subgraph{ in unvalidatedConvert() 120 return Model{ in unvalidatedConvert() 137 GeneralResult<Model> convert(const hal::V1_1::Model& model) { in convert() 163 const nn::Model::OperandValues& operandValues) { in unvalidatedConvert() 216 nn::GeneralResult<Model> unvalidatedConvert(const nn::Model& model) { in unvalidatedConvert() 232 return Model{ in unvalidatedConvert() 252 nn::GeneralResult<Model> convert(const nn::Model& model) { in convert()
|
/aosp12/frameworks/compile/libbcc/include/bcc/ |
H A 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()
|