File tree 4 files changed +6
-0
lines changed
4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -276,6 +276,7 @@ def register_binary_op(features: OpFeatures):
276
276
exir_ops .edge .aten .sqrt .default ,
277
277
exir_ops .edge .aten .rsqrt .default ,
278
278
exir_ops .edge .aten .tanh .default ,
279
+ exir_ops .edge .aten .round .default ,
279
280
]
280
281
)
281
282
def register_unary_op (features : OpFeatures ):
Original file line number Diff line number Diff line change @@ -44,3 +44,5 @@ unary_op:
44
44
OPERATOR : hardsigmoid(X)
45
45
- NAME : leaky_relu
46
46
OPERATOR : leaky_relu(X, A)
47
+ - NAME : round
48
+ OPERATOR : round(X)
Original file line number Diff line number Diff line change @@ -149,6 +149,7 @@ DEFINE_HARDSHRINK_FN(hardshrink);
149
149
DEFINE_ACTIVATION_FN (hardswish);
150
150
DEFINE_ACTIVATION_FN (hardsigmoid);
151
151
DEFINE_LEAKY_RELU_FN (leaky_relu);
152
+ DEFINE_ACTIVATION_FN (round);
152
153
153
154
REGISTER_OPERATORS {
154
155
VK_REGISTER_OP (aten.abs .default , abs );
@@ -168,6 +169,7 @@ REGISTER_OPERATORS {
168
169
VK_REGISTER_OP (aten.hardswish .default , hardswish);
169
170
VK_REGISTER_OP (aten.hardsigmoid .default , hardsigmoid);
170
171
VK_REGISTER_OP (aten.leaky_relu .default , leaky_relu);
172
+ VK_REGISTER_OP (aten.round .default , round );
171
173
}
172
174
173
175
} // namespace vkcompute
Original file line number Diff line number Diff line change @@ -1092,6 +1092,7 @@ def get_reduce_op_inputs():
1092
1092
"aten.hardswish.default" ,
1093
1093
"aten.hardsigmoid.default" ,
1094
1094
"aten.leaky_relu.default" ,
1095
+ "aten.round.default" ,
1095
1096
]
1096
1097
)
1097
1098
def get_unary_ops_inputs ():
You can’t perform that action at this time.
0 commit comments