Skip to content

Commit 4d69bd6

Browse files
authored
Remove unused l2norm function from tests
Removed unused l2norm function from test file.
1 parent a2286d3 commit 4d69bd6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/utils/model_proto_to_function_proto_test.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,12 @@ def diff_square(x, y):
3030
def sum_func(z):
3131
return op.ReduceSum(z, keepdims=1)
3232

33-
@script()
34-
def l2norm(x: FLOAT["N"], y: FLOAT["N"]) -> FLOAT[1]: # noqa: F821
35-
return op.Sqrt(sum_func(diff_square(x, y)))
36-
3733
@script()
3834
def l2norm_with_functions(x: FLOAT["N"], y: FLOAT["N"]) -> FLOAT[1]: # noqa: F821
3935
return op.Sqrt(sum_func(diff_square(x, y)))
4036

4137
self.diff_square = diff_square
4238
self.sum_func = sum_func
43-
self.l2norm = l2norm
4439
self.l2norm_with_functions = l2norm_with_functions
4540

4641
def test_multiple_functions_in_model_proto(self):

0 commit comments

Comments
 (0)