Skip to content

Commit

Permalink
x64: lrn, softmax: move setting formats before post_ops_ok check
Browse files Browse the repository at this point in the history
  • Loading branch information
tczeszun committed Apr 11, 2024
1 parent f47e44c commit 5806bab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cpu/x64/jit_uni_layer_normalization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1233,9 +1233,9 @@ status_t jit_uni_layer_normalization_fwd_t::pd_t::init(engine_t *engine) {

return injector::post_ops_ok(post_ops_args);
};
VDISPATCH_LNORM(post_ops_ok(), VERBOSE_UNSUPPORTED_POSTOP);
VDISPATCH_LNORM(attr_.set_default_formats(dst_md(0)) == status::success,
VERBOSE_UNSUPPORTED_POSTOP);
VDISPATCH_LNORM(post_ops_ok(), VERBOSE_UNSUPPORTED_POSTOP);

VDISPATCH_LNORM(fill_compatible_stats_md(*src_md(), reordered_stat_md_)
== status::success,
Expand Down
2 changes: 1 addition & 1 deletion src/cpu/x64/jit_uni_softmax.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ struct jit_uni_softmax_fwd_t : public primitive_t {
| skip_mask_t::post_ops),
VERBOSE_UNSUPPORTED_ATTR);
VDISPATCH_SOFTMAX(attr_scales_ok(), VERBOSE_UNSUPPORTED_SCALES_CFG);
VDISPATCH_SOFTMAX(post_ops_ok(), VERBOSE_UNSUPPORTED_POSTOP);

VDISPATCH_SOFTMAX(set_default_formats() == status::success,
VERBOSE_UNSUPPORTED_TAG);
VDISPATCH_SOFTMAX(
attr_.set_default_formats(dst_md(0)) == status::success,
VERBOSE_UNSUPPORTED_TAG);
VDISPATCH_SOFTMAX(post_ops_ok(), VERBOSE_UNSUPPORTED_POSTOP);
VDISPATCH_SOFTMAX(
memory_desc_wrapper(src_md()).similar_to(
memory_desc_wrapper(dst_md()), true, false, 0),
Expand Down

0 comments on commit 5806bab

Please sign in to comment.