WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 89a81bf

Browse files
committed
Fix formatting issue
1 parent 6fda7c5 commit 89a81bf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/test_tensor_operators.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ function vec_square(x)
2727
return x .* x
2828
end
2929

30-
operators = GenericOperatorEnum(; binary_operators=[vec_add], unary_operators=[vec_square], extend_user_operators=true)
30+
operators = GenericOperatorEnum(;
31+
binary_operators=[vec_add], unary_operators=[vec_square], extend_user_operators=true
32+
)
3133
tree = Node(1, c1)
3234
@test repr(tree) == "vec_square([1.0, 2.0, 3.0])"
3335
@test tree(X) == [1.0, 4.0, 9.0]
@@ -41,4 +43,4 @@ c2 = Node(T; val=2.0)
4143
tree = Node(1, Node(1, c1, x1), c2)
4244
@test repr(tree) == "vec_add(vec_add([1.0, 2.0, 3.0], x1), 2.0)"
4345
tree(X)
44-
@test tree(X) == [5.0, 6.0, 7.0]
46+
@test tree(X) == [5.0, 6.0, 7.0]

0 commit comments

Comments
 (0)