mirror of
https://github.com/tensorflow/haskell.git
synced 2024-11-23 11:29:43 +01:00
test actually demonstrates fix.
This commit is contained in:
parent
29499776ad
commit
d9ecd55438
1 changed files with 2 additions and 1 deletions
|
@ -114,7 +114,8 @@ testInitializedVariableShape =
|
||||||
vector <- build $ do
|
vector <- build $ do
|
||||||
a <- initializedVariable (constant [1] [42 :: Float])
|
a <- initializedVariable (constant [1] [42 :: Float])
|
||||||
b <- initializedValue (identity a)
|
b <- initializedValue (identity a)
|
||||||
return b
|
c <- initializedVariable b
|
||||||
|
return c
|
||||||
result <- run vector
|
result <- run vector
|
||||||
liftIO $ [42] @=? (result :: V.Vector Float)
|
liftIO $ [42] @=? (result :: V.Vector Float)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue