Skip to content

Commit 23d94f8

Browse files
alvoronazhai219
authored andcommitted
[FORK][FEATURE][ARM] Enable f16 ACL post-op
1 parent d973adf commit 23d94f8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/cpu/acl/acl_post_ops.hpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,8 @@ struct acl_post_ops_t {
142142

143143
CHECK(base_post_ops.set_default_formats(&dst_md));
144144
dst_data_type = dst_md.data_type;
145-
// If the first entry is eltwise, we fuse it, except when the datatype
146-
// is fp16 because in this case we want to execute the eltwise in fp32.
147-
if (base_post_ops.len() >= 1 && base_post_ops.entry_[0].is_eltwise()
148-
&& dst_data_type != data_type::f16) {
145+
// If the first entry is eltwise, we fuse it
146+
if (base_post_ops.len() >= 1 && base_post_ops.entry_[0].is_eltwise()) {
149147

150148
const auto &first_po = base_post_ops.entry_[0].eltwise;
151149
ACL_CHECK_SUPPORT(first_po.scale != 1.0f,

0 commit comments

Comments
 (0)