mirror of
https://github.com/tensorflow/haskell.git
synced 2024-11-26 21:09:44 +01:00
WIP: Update byte layout for TF_String tensors
This commit is contained in:
parent
627afab137
commit
c5bfff9b4c
1 changed files with 2 additions and 0 deletions
|
@ -322,6 +322,8 @@ instance {-# OVERLAPPING #-} TensorDataType V.Vector ByteString where
|
|||
-- at each element offset:
|
||||
-- string length :: VarInt64
|
||||
-- string data :: [Word8]
|
||||
-- TODO: According to the v2.4.0 release notes, the byte layout for string
|
||||
-- tensors has been changed to a contiguous array of TF_TStrings.
|
||||
decodeTensorData tensorData =
|
||||
either (\err -> error $ "Malformed TF_STRING tensor; " ++ err) id $
|
||||
if expected /= count
|
||||
|
|
Loading…
Reference in a new issue