Skip to content

Commit 86e9c74

Browse files
committed
Update
[ghstack-poisoned]
2 parents 4b3f654 + ce77ee7 commit 86e9c74

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.github/workflows/pull.yml

+3
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,9 @@ jobs:
333333

334334
unittest-arm:
335335
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
336+
permissions:
337+
id-token: write
338+
contents: read
336339
with:
337340
runner: linux.2xlarge
338341
docker-image: executorch-ubuntu-22.04-arm-sdk

.github/workflows/trunk.yml

+6
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ jobs:
132132
test-arm-backend-delegation:
133133
name: test-arm-backend-delegation
134134
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
135+
permissions:
136+
id-token: write
137+
contents: read
135138
with:
136139
runner: linux.2xlarge
137140
docker-image: executorch-ubuntu-22.04-arm-sdk
@@ -159,6 +162,9 @@ jobs:
159162
test-arm-reference-delegation:
160163
name: test-arm-reference-delegation
161164
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
165+
permissions:
166+
id-token: write
167+
contents: read
162168
with:
163169
runner: linux.2xlarge
164170
docker-image: executorch-ubuntu-22.04-arm-sdk

backends/cadence/fusion_g3/operators/op_dequantize.cpp

+6-5
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ void check_dequantize_per_tensor_args(
6767

6868
ET_CHECK_MSG(
6969
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()));
7272

7373
if (out_dtype.has_value()) {
7474
ET_CHECK_MSG(
@@ -561,11 +561,12 @@ Tensor& dequantize_per_tensor_out(
561561
const Tensor& input,
562562
double scale,
563563
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,
566566
ScalarType dtype,
567-
::executorch::aten::optional<ScalarType> out_dtype,
568567
Tensor& out) {
568+
constexpr ScalarType out_dtype = ScalarType::Float;
569+
569570
#ifdef OP_ARG_CHECK
570571
torch::executor::Error err = resize_tensor(out, input.sizes());
571572
ET_CHECK_MSG(

0 commit comments

Comments
 (0)