Skip to content

Commit afdec77

Browse files
committed
Revert some wrong editions in NeuralNetworksWrapper.h
1 parent 8f05911 commit afdec77

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

dnnlibrary/include/NeuralNetworksWrapper.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ struct SymmPerChannelQuantParams {
7474
// A helper function
7575
inline bool isScalarType(const Type &type) {
7676
return type == Type::FLOAT16 || type == Type::FLOAT32 || type == Type::INT32 || type == Type::BOOL || type == Type::UINT32;
77-
return type == Type::FLOAT32 || type == Type::INT32 || type == Type::UINT32;
7877
}
7978

8079
inline std::string typeToStr(const Type &type) {
@@ -149,7 +148,6 @@ struct OperandType {
149148
}
150149
bool isQuant() const {
151150
return type == Type::TENSOR_QUANT8_SYMM_PER_CHANNEL || type == Type::TENSOR_QUANT16_SYMM || type == Type::TENSOR_QUANT16_ASYMM || type == Type::TENSOR_QUANT8_ASYMM || type == Type::TENSOR_INT32;
152-
return type == Type::TENSOR_QUANT8_ASYMM || type == Type::TENSOR_INT32;
153151
}
154152
operator ANeuralNetworksOperandType() const {return operandType; }
155153
};

0 commit comments

Comments
 (0)