File tree Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ def __contains__(self, op):
76
76
exir_ops .edge .aten .sigmoid .default ,
77
77
exir_ops .edge .aten .sin .default ,
78
78
exir_ops .edge .aten .sqrt .default ,
79
+ exir_ops .edge .aten .rsqrt .default ,
79
80
exir_ops .edge .aten .tanh .default ,
80
81
exir_ops .edge .aten ._to_copy .default ,
81
82
# Matrix Multiplication
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ unary_op:
32
32
OPERATOR : sin(X)
33
33
- NAME : sqrt
34
34
OPERATOR : sqrt(X)
35
+ - NAME : rsqrt
36
+ OPERATOR : (1 / sqrt(X))
35
37
- NAME : tanh
36
38
OPERATOR : tanh(clamp(X, -15.0, 15.0))
37
39
- NAME : hardshrink
Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ DEFINE_ACTIVATION_FN(neg);
129
129
DEFINE_ACTIVATION_FN (sigmoid);
130
130
DEFINE_ACTIVATION_FN (sin);
131
131
DEFINE_ACTIVATION_FN (sqrt);
132
+ DEFINE_ACTIVATION_FN (rsqrt);
132
133
DEFINE_ACTIVATION_FN (tanh);
133
134
DEFINE_CLAMP_FN (clamp);
134
135
DEFINE_CLAMP_FN (hardtanh);
@@ -149,6 +150,7 @@ REGISTER_OPERATORS {
149
150
VK_REGISTER_OP (aten.sigmoid .default , sigmoid);
150
151
VK_REGISTER_OP (aten.sin .default , sin);
151
152
VK_REGISTER_OP (aten.sqrt .default , sqrt);
153
+ VK_REGISTER_OP (aten.rsqrt .default , rsqrt);
152
154
VK_REGISTER_OP (aten.tanh .default , tanh);
153
155
VK_REGISTER_OP (aten.hardshrink .default , hardshrink);
154
156
VK_REGISTER_OP (aten.hardswish .default , hardswish);
Original file line number Diff line number Diff line change @@ -988,6 +988,7 @@ def get_softmax_inputs():
988
988
@register_test_suite (
989
989
[
990
990
"aten.sqrt.default" ,
991
+ "aten.rsqrt.default" ,
991
992
"aten.exp.default" ,
992
993
"aten.hardshrink.default" ,
993
994
"aten.sin.default" ,
You can’t perform that action at this time.
0 commit comments