Merged
fix(operation): Tan Add Constraint #5880
刘奕哲Add on Sep 2
fix(operation): Tan Add Constraint #5880
Merged
刘奕哲Add on Sep 2
Total: 1 files changed+1-0
@@ -164,6 +164,7 @@ Tensor Tan(const Tensor& operand)
164{164{
165 DECLARE_TRACER();165 DECLARE_TRACER();
166 CheckTensorFormat(operand.GetStorage(), {TileOpFormat::TILEOP_NZ}, "Tan");166 CheckTensorFormat(operand.GetStorage(), {TileOpFormat::TILEOP_NZ}, "Tan");
167+ CheckTensorDimRange(operand.GetStorage(), 1, NUM_VALUE_4, "Tan");
167 168 
168 auto dType = operand.GetStorage()->Datatype();169 auto dType = operand.GetStorage()->Datatype();
169 CHECK(VectorErrorCode::ERR_PARAM_DTYPE_UNSUPPORTED,170 CHECK(VectorErrorCode::ERR_PARAM_DTYPE_UNSUPPORTED,