Skip to content

Commit 73b9171

Browse files
committed
common: attr: switch off consistency check for now
1 parent a6fd952 commit 73b9171

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/common/primitive_attr.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ bool post_ops_t::check_sum_consistency(const data_type_t dst_dt,
338338
status_t post_ops_t::entry_t::validate_binary_with_dst_consistency(
339339
const memory_desc_t *dst_md) const {
340340
if (!is_binary()) return status::success;
341+
// TODO: disable the check for now.
342+
return status::success;
341343

342344
VCHECK_ATTR(dst_md->ndims == binary.user_src1_desc.ndims,
343345
VERBOSE_INCONSISTENT_NDIMS_WITH_VALS, "dst", "bin_po",

tests/gtests/dnnl_test_common.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,8 @@ void test_fwd_pd_attr_po_binary(const engine &eng, bool supports_po_binary,
928928
return;
929929
}
930930

931-
EXPECT_ANY_THROW(pd_t pd(eng, prim_params..., attr_po_binary_bad));
931+
// TODO: revert with the supplied change in the same commit.
932+
// EXPECT_ANY_THROW(pd_t pd(eng, prim_params..., attr_po_binary_bad));
932933
EXPECT_NO_THROW(pd_t pd(eng, prim_params..., attr_po_binary_good));
933934
}
934935

0 commit comments

Comments
 (0)