Skip to content

Commit 4cbbd48

Browse files
authored
[SYCLomatic] Fix convolution_desc bool conversion (#653)
Signed-off-by: Cai, Justin <[email protected]>
1 parent 9bd2825 commit 4cbbd48

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

clang/runtime/dpct-rt/include/dnnl_utils.hpp.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -668,9 +668,9 @@ public:
668668
}
669669

670670
operator bool() const {
671-
return _strides.size() == 0
672-
&& _dilates.size() == 0
673-
&& _paddings.size() == 0;
671+
return !(_strides.size() == 0
672+
&& _dilates.size() == 0
673+
&& _paddings.size() == 0);
674674
}
675675
};
676676
// DPCT_LABEL_END

clang/test/dpct/helper_files_ref/include/dnnl_utils.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,9 +600,9 @@ class convolution_desc {
600600
}
601601

602602
operator bool() const {
603-
return _strides.size() == 0
604-
&& _dilates.size() == 0
605-
&& _paddings.size() == 0;
603+
return !(_strides.size() == 0
604+
&& _dilates.size() == 0
605+
&& _paddings.size() == 0);
606606
}
607607
};
608608

0 commit comments

Comments
 (0)