Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions backends/cortex_m/ops/cortex_m_ops_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,6 @@ inline void validate_single_quant_params(
int64_t mult_val = multiplier.to<int64_t>();
int64_t shift_val = shift.to<int64_t>();

ET_CHECK_MSG(
zp_val >= std::numeric_limits<int8_t>::min() &&
zp_val <= std::numeric_limits<int8_t>::max(),
"%s zero point must be in int8 range [Value: %d]",
param_name,
zp_val);

ET_CHECK_MSG(
mult_val >= std::numeric_limits<int32_t>::min() &&
mult_val <= std::numeric_limits<int32_t>::max(),
Expand Down
2 changes: 1 addition & 1 deletion backends/cortex_m/test/ops/test_activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def forward(self, x):
),
"linear_hardswish": McuTestCase(
model=CortexMLinearHardswish(in_features=12, out_features=6),
example_inputs=(ramp_tensor(-12, 12, (1, 12)),),
example_inputs=(ramp_tensor(-2, 0, (1, 12)),),
),
"conv2d_hardsigmoid_inplace": McuTestCase(
model=CortexMConv2DHardsigmoid(),
Expand Down
Loading