Home
last modified time | relevance | path

Searched refs:dimensionCount (Results 1 – 19 of 19) sorted by relevance

/packages/modules/NeuralNetworks/runtime/test/
DTestValidateModel.cpp35 operand_0.dimensionCount = 0; in TEST_F()
41 operand_1.dimensionCount = 0; in TEST_F()
47 operand_2.dimensionCount = 4; in TEST_F()
55 operand_3.dimensionCount = 2; in TEST_F()
63 operand_4.dimensionCount = 2; in TEST_F()
71 operand_5.dimensionCount = 2; in TEST_F()
79 operand_6.dimensionCount = 1; in TEST_F()
87 operand_7.dimensionCount = 4; in TEST_F()
95 operand_8.dimensionCount = 4; in TEST_F()
103 operand_9.dimensionCount = 4; in TEST_F()
[all …]
DTestValidateOperations.cpp58 .dimensionCount = dimCount, in getOpType()
84 operandType.dimensionCount != that.operandType.dimensionCount) { in operator ==()
104 operandType.dimensions + operandType.dimensionCount, in operator ==()
131 if (operandType.dimensionCount < that.operandType.dimensionCount) return true; in operator <()
187 assert(op.operandType.dimensionCount == *mRangeMin); in MutationsWithValidRank()
223 if (operandTypeWithParams.operandType.dimensionCount == newRank) { in ModifyForRank()
236 std::min(operandTypeWithParams.operandType.dimensionCount, newRank); in ModifyForRank()
244 .dimensionCount = newRank, in ModifyForRank()
664 << "dimensionCount: " << operandType.dimensionCount << ", dimensions: ["; in operator <<()
665 std::for_each(operandType.dimensions, operandType.dimensions + operandType.dimensionCount, in operator <<()
[all …]
DTestOperandExtraParams.cpp56 .dimensionCount = 0, in createOperand()
67 .dimensionCount = 4, in createOperand()
73 .dimensionCount = 4, in createOperand()
79 .dimensionCount = 4, in createOperand()
85 .dimensionCount = 4, in createOperand()
91 .dimensionCount = 4, in createOperand()
97 .dimensionCount = 4, in createOperand()
DTestValidation.cpp67 .type = type, .dimensionCount = 0, .dimensions = nullptr}; in addScalarOperand()
84 .dimensionCount = static_cast<uint32_t>(dimensions.size()), in addTensorOperand()
123 .dimensionCount = 1,
129 .dimensionCount = 0,
176 .dimensionCount = 1, in SetUp()
179 .type = ANEURALNETWORKS_INT32, .dimensionCount = 0, .dimensions = nullptr}; in SetUp()
316 .type = ANEURALNETWORKS_INT32, .dimensionCount = 0, .dimensions = nullptr}; in addScalarOperand()
324 .dimensionCount = 1, in addTensorOperand()
402 .type = ANEURALNETWORKS_FLOAT32, .dimensionCount = 0, .dimensions = nullptr}; in TEST_F()
409 .dimensionCount = 0, in TEST_F()
[all …]
DTestFree.cpp36 .type = ANEURALNETWORKS_TENSOR_FLOAT32, .dimensionCount = 1, .dimensions = dimensions}; in createUnfinishedModel()
/packages/modules/NeuralNetworks/common/
DUtilsTest.cpp88 .dimensionCount = 0, in TEST()
110 .dimensionCount = std::size(dimensions), in TEST()
127 .dimensionCount = std::size(dimensions), in TEST()
DLegacyUtils.cpp383 return tensorHasUnspecifiedDimensions(type->type, type->dimensions, type->dimensionCount); in tensorHasUnspecifiedDimensions()
402 NN_RET_CHECK_EQ(type.dimensionCount, 0u) << tag << " invalid dimensions for scalar type"; in validateScalarDimensions()
452 NN_RET_CHECK_GT(type.dimensionCount, 0u) << tag << " invalid operand dimensions"; in validateTensorDimensions()
459 for (uint32_t i = 0; i < type.dimensionCount; i++) { in validateTensorDimensions()
475 NN_RET_CHECK_EQ(type.dimensionCount == 0, type.dimensions == nullptr); in validateOperandTypeHelper()
/packages/modules/NeuralNetworks/extensions/
DREADME.md125 .dimensionCount = dimensionCount,
/packages/modules/NeuralNetworks/runtime/include/
DNeuralNetworksTypes.h6278 uint32_t dimensionCount; member
DNeuralNetworksWrapperExtensions.h78 .dimensionCount = static_cast<uint32_t>(dimensions.size()), in dimensions()
DNeuralNetworksWrapper.h152 .dimensionCount = static_cast<uint32_t>(dimensions.size()), in dimensions()
165 .dimensionCount = static_cast<uint32_t>(dimensions.size()), in OperandType()
/packages/modules/NeuralNetworks/runtime/
DModelArgumentInfo.cpp118 const uint32_t count = newType->dimensionCount; in updateDimensionInfo()
DMemory.cpp110 NN_RET_CHECK(isTensor || type->dimensionCount == 0) in validate()
113 type->dimensions + type->dimensionCount); in validate()
DExecutionBuilder.cpp131 if (operand.dimensions.size() != newType->dimensionCount) { in checkDimensionInfo()
133 << operand.dimensions.size() << ", new = " << newType->dimensionCount << ")"; in checkDimensionInfo()
136 for (uint32_t i = 0; i < newType->dimensionCount; i++) { in checkDimensionInfo()
DModelBuilder.cpp96 NN_VALIDATE_NULL_OR_SIZED("addOperand", type.dimensions, type.dimensionCount); in addOperand()
99 .dimensions = makeVector(type.dimensions, type.dimensionCount), in addOperand()
DNeuralNetworks.cpp578 static_assert(offsetof(ANeuralNetworksOperandType, dimensionCount) == 4,
DExecutionPlan.cpp434 .dimensionCount = static_cast<uint32_t>(operand.dimensions.size()), in addOperand()
/packages/modules/NeuralNetworks/tools/api/
DNeuralNetworksTypes.t614 * unspecified dimensions is represented by setting dimensionCount to
620 * represented by setting dimensionCount to 0 and dimensions to NULL (just as if
634 uint32_t dimensionCount;
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DSectionParser.java1676 int dimensionCount = data[pos + 1] & 0xff; in parseContentAdvisory() local
1679 for (int j = 0; j < dimensionCount; ++j) { in parseContentAdvisory()