Skip to content

Commit ebff33c

Browse files
Abhi-hppfacebook-github-bot
authored andcommitted
aten.hardswish fix w coordinate (#5418)
Summary: Pull Request resolved: #5418 Fix typo in the w coordinate Reviewed By: SS-JIA Differential Revision: D62874707 fbshipit-source-id: 691de9ba2f3bb1de0472b768c36ad09a4ed62075
1 parent 1a5c8bf commit ebff33c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/vulkan/runtime/graph/ops/glsl/activations.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ float hardswish(float x) {
1818

1919
vec4 hardswish(vec4 tex) {
2020
return vec4(
21-
hardswish(tex.x), hardswish(tex.y), hardswish(tex.z), hardswish(tex.z));
21+
hardswish(tex.x), hardswish(tex.y), hardswish(tex.z), hardswish(tex.w));
2222
}
2323

2424
float hardshrink(float x, float lambda, float neg_lambda) {

0 commit comments

Comments
 (0)