Skip to content

Commit 9c5cf60

Browse files
authored
Fix operator precedence bug in permute_copy_out dtype check
Differential Revision: D98928236 Pull Request resolved: #18608
1 parent 12d7518 commit 9c5cf60

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backends/cadence/fusion_g3/operators/op_permute_copy.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ Tensor& permute_copy_out(
105105
signed char* out_data = out.mutable_data_ptr<signed char>();
106106
const signed char* const inp_data = in.const_data_ptr<signed char>();
107107

108-
if (((out.scalar_type() == in.scalar_type()) &&
109-
(out.scalar_type() == ScalarType::Int) ||
108+
if ((out.scalar_type() == in.scalar_type()) &&
109+
((out.scalar_type() == ScalarType::Int) ||
110110
(out.scalar_type() == ScalarType::Short) ||
111111
(out.scalar_type() == ScalarType::Char) ||
112112
(out.scalar_type() == ScalarType::UInt32) ||

0 commit comments

Comments
 (0)