File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
backends/cadence/fusion_g3/operators Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ void check_dequantize_per_tensor_args(
67
67
68
68
ET_CHECK_MSG (
69
69
input.scalar_type () == dtype,
70
- " input.scalar_type() %" PRId8 " is not matching dtype argumenta :" ,
71
- static_cast < int8_t > (input.scalar_type ()));
70
+ " input.scalar_type() %s is not matching dtype arguments :" ,
71
+ ::executorch::runtime::toString (input.scalar_type()));
72
72
73
73
if (out_dtype.has_value ()) {
74
74
ET_CHECK_MSG (
@@ -561,11 +561,12 @@ Tensor& dequantize_per_tensor_out(
561
561
const Tensor& input,
562
562
double scale,
563
563
int64_t zero_point,
564
- int64_t quant_min,
565
- int64_t quant_max,
564
+ __ET_UNUSED int64_t quant_min,
565
+ __ET_UNUSED int64_t quant_max,
566
566
ScalarType dtype,
567
- ::executorch::aten::optional<ScalarType> out_dtype,
568
567
Tensor& out) {
568
+ constexpr ScalarType out_dtype = ScalarType::Float;
569
+
569
570
#ifdef OP_ARG_CHECK
570
571
torch::executor::Error err = resize_tensor (out, input.sizes ());
571
572
ET_CHECK_MSG (
You can’t perform that action at this time.
0 commit comments