File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
tensorflow/src/TensorFlow Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -187,8 +187,8 @@ run session graph inputNamesData outputNames targetNames = do
187
187
parseName :: B. ByteString -> (B. ByteString , CInt )
188
188
parseName name =
189
189
case break (== ' :' ) (C. unpack name) of
190
- (name, ' :' : idxStr) | [( idx, " " :: String )] <- read idxStr
191
- -> (C. pack name, fromInteger idx)
190
+ (name, ' :' : idxStr) | idx <- read idxStr
191
+ -> (C. pack name, idx)
192
192
_ -> (name, 0 )
193
193
194
194
nullTensor = Raw. Tensor nullPtr
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ opControlInputs = lens _opControlInputs (\o x -> o {_opControlInputs = x})
121
121
-- code into a Build function
122
122
instance IsString Output where
123
123
fromString s = case break (== ' :' ) s of
124
- (n, ' :' : ixStr) | [(ix, " " :: String )] <- read ixStr
125
- -> Output (fromInteger ix) $ assigned n
124
+ (n, ' :' : ixStr) | ix <- read ixStr
125
+ -> Output (fromInteger ix) $ assigned n
126
126
_ -> Output 0 $ assigned s
127
127
where assigned = NodeName . Text. pack
You can’t perform that action at this time.
0 commit comments