Fixed CI and added indicator. (#15)

* Sorted test names.

* Don't require a terminal to run tests.

Should resolve "the input device is not a TTY" problem with Jenkins.

* Added build indicator to README.md.

* Fixed up URL.
This commit is contained in:
Greg Steuck 2016-10-28 18:08:32 -07:00 committed by fkm3
parent 28bfe005da
commit 9f2f4e2877
3 changed files with 9 additions and 7 deletions

View File

@ -1,3 +1,5 @@
[![Build Status](https://ci.tensorflow.org/buildStatus/icon?job=tensorflow-haskell-master)](https://ci.tensorflow.org/job/tensorflow-haskell-master)
The tensorflow-haskell package provides Haskell bindings to
[TensorFlow](https://www.tensorflow.org/).

View File

@ -8,4 +8,4 @@ IMAGE_NAME=tensorflow/haskell/ci_build:v0
git submodule update
docker build -t $IMAGE_NAME -f ci_build/Dockerfile .
docker run -ti $IMAGE_NAME stack test
docker run $IMAGE_NAME stack test

View File

@ -78,20 +78,20 @@ testLogisticOutput = testCase "testLogisticOutput" $ do
vTargets = TF.vector $ targets inputs
tfLoss = TF.sigmoidCrossEntropyWithLogits vLogits vTargets
ourLoss = V.fromList $ sigmoidXentWithLogits (logits inputs) (targets inputs)
r <- run tfLoss
assertAllClose r ourLoss
testLogisticOutputMultipleDim =
testCase "testLogisticOutputMultipleDim" $ do
let inputs = defInputs
let inputs = defInputs
shape = [2, 2, 2]
vLogits = TF.constant shape (logits inputs)
vTargets = TF.constant shape (targets inputs)
tfLoss = TF.sigmoidCrossEntropyWithLogits vLogits vTargets
ourLoss = V.fromList $ sigmoidXentWithLogits (logits inputs) (targets inputs)
r <- run tfLoss
assertAllClose r ourLoss
@ -101,7 +101,7 @@ testGradientAtZero = testCase "testGradientAtZero" $ do
vLogits = TF.vector $ logits inputs
vTargets = TF.vector $ targets inputs
tfLoss = TF.sigmoidCrossEntropyWithLogits vLogits vTargets
r <- run $ do
l <- tfLoss
TF.gradients l [vLogits]
@ -113,7 +113,7 @@ run = TF.runSession . TF.buildAnd TF.run
main :: IO ()
main = googleTest [ testLogisticOutput
main = googleTest [ testGradientAtZero
, testLogisticOutput
, testLogisticOutputMultipleDim
, testGradientAtZero
]