Skip to content

Commit c5bfff9

Browse files
author
Bart Schuurmans
committed
WIP: Update byte layout for TF_String tensors
1 parent 627afab commit c5bfff9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tensorflow/src/TensorFlow/Types.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,8 @@ instance {-# OVERLAPPING #-} TensorDataType V.Vector ByteString where
322322
-- at each element offset:
323323
-- string length :: VarInt64
324324
-- string data :: [Word8]
325+
-- TODO: According to the v2.4.0 release notes, the byte layout for string
326+
-- tensors has been changed to a contiguous array of TF_TStrings.
325327
decodeTensorData tensorData =
326328
either (\err -> error $ "Malformed TF_STRING tensor; " ++ err) id $
327329
if expected /= count

0 commit comments

Comments
 (0)