mirror of
https://github.com/uxlfoundation/oneDNN.git
synced 2025-10-20 18:43:49 +08:00
gpu: postops: add dispatch check for unsupported select postop
This commit is contained in:
@ -57,6 +57,11 @@ status_t gemm_with_post_ops_t::pd_t::init(impl::engine_t *engine) {
|
||||
}
|
||||
attr_info_ = attr_info_t::create(attributes_with_po);
|
||||
|
||||
const auto &po = attributes_with_po->post_ops_;
|
||||
for (auto i = 0; i < po.len(); ++i)
|
||||
VDISPATCH_GEMM(!po.entry_[i].is_binary_with_ternary_op(),
|
||||
VERBOSE_UNSUPPORTED_POSTOP);
|
||||
|
||||
VDISPATCH_GEMM(d->sum_ab == sum_ab::sum_none, VERBOSE_UNSUPPORTED_FEATURE,
|
||||
"bias reduction");
|
||||
|
||||
|
@ -568,6 +568,7 @@ bool post_ops_with_binary_ok(const primitive_attr_t *attr,
|
||||
&& (is_eltwise(po_idx) || is_sum(po_idx) || is_binary(po_idx)
|
||||
|| is_prelu(po_idx));
|
||||
if (is_binary(po_idx)) {
|
||||
if (p.entry_[po_idx].is_binary_with_ternary_op()) return false;
|
||||
const auto &bin_desc = p.entry_[po_idx].binary.src1_desc;
|
||||
bool has_runtime_dims = false;
|
||||
int num_size_one_dims = 0;
|
||||
|
Reference in New Issue
Block a user