File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -95,31 +95,6 @@ function test_norm()
9595 return
9696end
9797
98- function test_l2_loss_simple ()
99- n = 2
100- X = rand (n, n)
101- Y = rand (n, n)
102- model = Model ()
103- @variable (model, W1[1 : n, 1 : n], container = ArrayDiff. ArrayOfVariables)
104- @variable (model, W2[1 : n, 1 : n], container = ArrayDiff. ArrayOfVariables)
105- prod = W2 * X
106- diff_expr = prod .- Y
107- @test diff_expr isa ArrayDiff. MatrixExpr
108- return
109- end
110-
111- function test_l2_loss_tanh ()
112- n = 2
113- X = rand (n, n)
114- Y = rand (n, n)
115- model = Model ()
116- @variable (model, W1[1 : n, 1 : n], container = ArrayDiff. ArrayOfVariables)
117- hidden = tanh .(W1 * X)
118- diff_expr = hidden .- Y
119- @test diff_expr isa ArrayDiff. MatrixExpr
120- return
121- end
122-
12398function test_l2_loss ()
12499 n = 2
125100 X = rand (n, n)
You can’t perform that action at this time.
0 commit comments