Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bcbde19 authored by Lev Proleev's avatar Lev Proleev Committed by android-build-merger
Browse files

mutateOperationOperandTypeSkip for new GROUPED_CONV_2D variant am: b35eb1ea

am: c18270c1

Change-Id: I6762a9089046dd2946862cf0eb58690a6592a08e
parents 5a7432cf c18270c1
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -328,6 +328,7 @@ static bool mutateOperationOperandTypeSkip(size_t operand, OperandType type, con
        // - RANDOM_MULTINOMIAL's argument can be either TENSOR_FLOAT16 or TENSOR_FLOAT32.
        // - RANDOM_MULTINOMIAL's argument can be either TENSOR_FLOAT16 or TENSOR_FLOAT32.
        // - CONV_2D filter type (arg 1) can be QUANT8_ASYMM or QUANT8_SYMM_PER_CHANNEL
        // - CONV_2D filter type (arg 1) can be QUANT8_ASYMM or QUANT8_SYMM_PER_CHANNEL
        // - DEPTHWISE_CONV_2D filter type (arg 1) can be QUANT8_ASYMM or QUANT8_SYMM_PER_CHANNEL
        // - DEPTHWISE_CONV_2D filter type (arg 1) can be QUANT8_ASYMM or QUANT8_SYMM_PER_CHANNEL
        // - GROUPED_CONV_2D filter type (arg 1) can be QUANT8_ASYMM or QUANT8_SYMM_PER_CHANNEL
        switch (operation.type) {
        switch (operation.type) {
            case OperationType::LSH_PROJECTION: {
            case OperationType::LSH_PROJECTION: {
                if (operand == operation.inputs[1]) {
                if (operand == operation.inputs[1]) {
@@ -347,6 +348,7 @@ static bool mutateOperationOperandTypeSkip(size_t operand, OperandType type, con
                    return true;
                    return true;
                }
                }
            } break;
            } break;
            case OperationType::GROUPED_CONV_2D:
            case OperationType::DEPTHWISE_CONV_2D:
            case OperationType::DEPTHWISE_CONV_2D:
            case OperationType::CONV_2D: {
            case OperationType::CONV_2D: {
                if (operand == 1 && (type == OperandType::TENSOR_QUANT8_ASYMM ||
                if (operand == 1 && (type == OperandType::TENSOR_QUANT8_ASYMM ||