Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
malmaud committed Jun 27, 2017
1 parent 6980b1c commit 8beba47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ end
unused = get_variable("unused", [], Float64)
used = get_variable("used", [], Float64)
loss = used.^2
optimizer = train.minimize(train.AdamOptimizer(), loss)
grad = gradients(loss, unused)
@test grad === nothing
# optimizer = train.minimize(ætrain.AdamOptimizer(), loss)
# This would have thrown an error if Disconnected gradients were causing issues
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/meta.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ end
fq = TensorFlow.FIFOQueue(10, [Int32, Int64]); #This datatype should be an Op
cc = nn.rnn_cell.GRUCell(40) #this Datatype should not be an Op

X = get_variable([50], Float64)
X = get_variable([1, 50], Float64)
variable_scope("logisitic_model") do
W = get_variable([50, 10], Float64)
B = get_variable([10], Float64)
Expand Down

0 comments on commit 8beba47

Please sign in to comment.